GT2/GT2-Android/node_modules/remove-trailing-slash/readme.md

33 lines
478 B
Markdown
Raw Normal View History

# remove-trailing-slash
removes trailing slashes
## Installation
with [component(1)](http://component.io):
$ component install stephenmathieson/remove-trailing-slash
with [npm](https://npmjs.org/):
$ npm install remove-trailing-slash
## API
### `removeTrailingSlash(str)`
Removes trailing slashes from the given `str`
## Example
```js
var slashes = require('slashes')
slashes('http://google.com/').should.be.equal('http://google.com');
```
## License
MIT