node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

strip-path

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