Strip a path from a path
JavaScript
Latest commit 101bbdf Feb 8, 2015 @sindresorhus Update .travis.yml
Permalink
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.jshintrc
.travis.yml
index.js
license
package.json
readme.md
test.js

readme.md

strip-path Build Status

Strip a path from a path

Install

$ npm install --save strip-path

Usage

var stripPath = require('strip-path');

stripPath('path1/path2/path3/path4', 'path1/path2');
//=> 'path3/path4'

API

stripPath(path, stripPath)

path

Required
Type: string

The path to stripped.

stripPath

Required
Type: string

The path to strip from path.

License

MIT © Sindre Sorhus