Socket
Book a DemoInstallSign in
Socket

strip-path

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strip-path

Strip a path from a path

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
2.6K
23.32%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

path

FAQs

Package last updated on 13 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts