You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
2 years ago | |
---|---|---|
.. | ||
Makefile | 2 years ago | |
history.md | 2 years ago | |
index.d.ts | 2 years ago | |
index.js | 2 years ago | |
package.json | 2 years ago | |
readme.md | 2 years ago |
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