strip-slashes
v1.1.1
Published
A package to remove extra slashes from a url.
Downloads
8
Readme
strip-slashes
Purpose
The purpose of this package is to remove multiple slashes which are added during concatenation of the relative or absolute paths in the code.
Usage
var normalizePath = require("strip-slashes");
console.log(normalizePath("//blog///first-post/"));
// output → /blog/first-post/
Contributing
Read the contributing guidelines
Code of Conduct
We adopt a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.