npm.io
1.0.0 • Published 9 years ago

replacepath

Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0

Installation

Install package with NPM and add it to your development dependencies:

npm install --save-dev replacepath

Usage

var replacepath = require('replacepath');

replacepath('a\b\c') => 'a/b/c';

replacepath('a///b///c') => 'a/b/c';

replacepath('a/b...../c') => 'a/c';

replacepath('a/./b/./c') => 'a/b/c';

Keywords