slash-helper
v1.1.0
Published
Remove trailing slashes and prepend slash to a URL
Downloads
1
Readme
Usage
var slash = require('slash-helper');
slash.normalizePath('http://my.example.com/123/');
returns http://my.example.com/123
slash.normalizePath('/example/123/');
returns /example/123