Need private packages and team management tools?Check out npm Teams »

strip-path

1.0.0 • Public • Published

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

Install

npm i strip-path

DownloadsWeekly Downloads

6,604

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar