remove-trailing-slash
Version:
removes trailing slashes
32 lines (17 loc) • 491 B
Markdown
removes trailing slashes
with [component(1)](http://component.io):
$ component install stephenmathieson/remove-trailing-slash
with [npm](https://npmjs.org/):
$ npm install remove-trailing-slash
Removes trailing slashes from the given `str`
```js
var slashes = require('remove-trailing-slash')
slashes('http://google.com/').should.be.equal('http://google.com');
```
MIT