0.1.1 • Published 4 years ago

remove-trailing-slash v0.1.1

Weekly downloads
339,209
License
MIT
Repository
github
Last release
4 years ago

remove-trailing-slash

removes trailing slashes

Installation

with component(1):

$ component install stephenmathieson/remove-trailing-slash

with npm:

$ npm install remove-trailing-slash

API

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

0.1.1

4 years ago

0.1.0

11 years ago