@storm-software/config-tools
Version:
⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.
31 lines (28 loc) • 1.24 kB
TypeScript
import path from 'node:path';
declare function normalizeWindowsPath(input?: string): string;
/**
* Constant for path separator.
*
* Always equals to `"/"`.
*/
declare const sep = "/";
declare const correctPaths: (path?: string) => string;
declare const joinPaths: typeof path.join;
declare const resolve: typeof path.resolve;
/**
* Resolves a string path, resolving '.' and '.' segments and allowing paths above the root.
*
* @param path - The path to normalise.
* @param allowAboveRoot - Whether to allow the resulting path to be above the root directory.
* @returns the normalised path string.
*/
declare function normalizeString(path: string, allowAboveRoot: boolean): string;
declare const isAbsolute: typeof path.isAbsolute;
declare const toNamespacedPath: typeof path.toNamespacedPath;
declare const extname: typeof path.extname;
declare const relative: typeof path.relative;
declare const dirname: typeof path.dirname;
declare const format: typeof path.format;
declare const basename: typeof path.basename;
declare const parse: typeof path.parse;
export { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths, normalizeString, normalizeWindowsPath, parse, relative, resolve, sep, toNamespacedPath };