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

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
2.4K
54.78%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

path

FAQs

Package last updated on 18 Aug 2021

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