UNPKG

@storm-software/config-tools

Version:

A package containing various utilities to support custom workspace configurations and environment management for Storm Software projects, including configuration file handling, environment variable management, and logging utilities.

31 lines (28 loc) 1.24 kB
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 };