Files
coopgo/node_modules/unified/node_modules/vfile/lib/minpath.browser.d.ts
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00

47 lines
1019 B
TypeScript

export namespace minpath {
export { basename };
export { dirname };
export { extname };
export { join };
export let sep: string;
}
/**
* Get the basename from a path.
*
* @param {string} path
* File path.
* @param {string | null | undefined} [extname]
* Extension to strip.
* @returns {string}
* Stem or basename.
*/
declare function basename(path: string, extname?: string | null | undefined): string;
/**
* Get the dirname from a path.
*
* @param {string} path
* File path.
* @returns {string}
* File path.
*/
declare function dirname(path: string): string;
/**
* Get an extname from a path.
*
* @param {string} path
* File path.
* @returns {string}
* Extname.
*/
declare function extname(path: string): string;
/**
* Join segments from a path.
*
* @param {Array<string>} segments
* Path segments.
* @returns {string}
* File path.
*/
declare function join(...segments: Array<string>): string;
export {};
//# sourceMappingURL=minpath.browser.d.ts.map