remove trailing slashes
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.npmignore
Makefile
component.json
history.md
index.js
package.json
readme.md

readme.md

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