remove-trailing-slash
removes trailing slashes
Installation
with component(1):
$ component install stephenmathieson/remove-trailing-slashwith npm:
$ npm install remove-trailing-slashAPI
removeTrailingSlash(str)
Removes trailing slashes from the given str
Example
var slashes = require('remove-trailing-slash')
slashes('http://google.com/').should.be.equal('http://google.com');License
MIT