remove-trailing-slash

removes trailing slashes

remove-trailing-slash

removes trailing slashes

with component(1):

$ component install stephenmathieson/remove-trailing-slash

with npm:

$ npm install remove-trailing-slash

Removes trailing slashes from the given str

var slashes = require('slashes')
 
slashes('http://google.com/').should.be.equal('http://google.com');

MIT