mirror of
https://kevinblog.sytes.net/Code/Jibo-Revival-Group/Zos.git
synced 2026-06-15 22:56:28 +00:00
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('slashes')
slashes('http://google.com/').should.be.equal('http://google.com');
License
MIT