strip-slashes

1.1.1 • Public • Published

strip-slashes

version install size downloads MIT License Build Status PRs Welcome

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.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i strip-slashes

Weekly Downloads

11

Version

1.1.1

License

MIT

Unpacked Size

4.24 kB

Total Files

5

Last publish

Collaborators

  • varundevpro