@augment-vir/node
Version:
A collection of augments, helpers types, functions, and classes only for Node.js (backend) JavaScript environments.
26 lines (25 loc) • 969 B
TypeScript
/**
* Convert a given path to a windows path if the current system doesn't use `/`.
*
* @category Path : Node
* @category Package : @augment-vir/node
* @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
*/
export declare function replaceWithWindowsPathIfNeeded(input: string): string;
/**
* Convert a Windows path to a posix path.
*
* @category Path : Node
* @category Package : @augment-vir/node
* @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
*/
export declare function toPosixPath(maybeWindowsPath: string): string;
/**
* Use this to interpolate paths into bash commands. If the given path is not a Windows path, the
* path structure will not be modified.
*
* @category Path : Node
* @category Package : @augment-vir/node
* @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
*/
export declare function interpolationSafeWindowsPath(input: string): string;