Skip to content

rlugojr/strip-path

 
 

Repository files navigation

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

About

Strip a path from a path

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%