zx
Version:
A tool for writing better scripts
10 lines (9 loc) • 530 B
TypeScript
/**
* Install npm dependencies
* @param dependencies object of dependencies
* @param prefix path to the directory where npm should install the dependencies
* @param registry custom npm registry URL when installing dependencies
* @param installerType package manager: npm, yarn, pnpm, bun, etc.
*/
export declare function installDeps(dependencies: Record<string, string>, prefix?: string, registry?: string, installerType?: string): Promise<void>;
export declare function parseDeps(content: string): Record<string, string>;