You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

path-string-prepend

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

path-string-prepend - npm Package Compare versions

Comparing version
1.1.1
to
1.1.2
+2
-2
package.json
{
"name": "path-string-prepend",
"version": "1.1.1",
"version": "1.1.2",
"description": "Prepends a path to a platform-specfic delimited path string and removes duplicate paths",

@@ -26,3 +26,3 @@ "keywords": [

"main": "dist/cjs/index.js",
"types": "dist/cjs/index.d.cts",
"types": "dist/cjs/index.d.ts",
"files": [

@@ -29,0 +29,0 @@ "dist"

export interface PrependResult {
added: string[];
removed: string[];
path: string;
}
export interface PrependOptions {
delimiter?: string;
filter?: (_path?: string) => boolean;
changes?: boolean;
}
export default function prepend(pathString: string, prependPath: string, options?: PrependOptions): PrependResult | string;