@stryke/path
Version:
A package containing various utilities that expand the functionality of NodeJs's built-in `path` module
10 lines (9 loc) • 376 B
TypeScript
import type path from "node:path";
/**
* Joins all given path segments together using the platform-specific separator as a delimiter.
* The resulting path is normalized to remove any redundant or unnecessary segments.
*
* @param segments - The path segments to join.
* @returns The joined and normalized path string.
*/
export declare const joinPaths: typeof path.join;