strip-path

2.0.0 • Public • Published

strip-path

Strip a path from a path

Install

$ npm install strip-path

Usage

import stripPath from '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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    19
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    19
  • 1.0.0
    2,665
  • 0.1.1
    1,048
  • 0.1.0
    0

Package Sidebar

Install

npm i strip-path

Weekly Downloads

3,732

Version

2.0.0

License

MIT

Unpacked Size

2.66 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus