UNPKG

install-module-linked

Version:
10 lines (9 loc) 802 B
import type { InstallCallback, InstallOptions } from './types.js'; export { default as clear } from './lib/clear.js'; export { default as install } from './lib/install.js'; export { default as parseInstallString } from './lib/parseInstallString.js'; export type * from './types.js'; export default function installModule(installString: string, nodeModulesPath: string, callback: InstallCallback): void; export default function installModule(installString: string, nodeModulesPath: string, options: InstallOptions, callback: InstallCallback): void; export default function installModule(installString: string, nodeModulesPath: string, options?: InstallOptions): Promise<string>; export declare function sync(installString: string, nodeModulesPath: string, options?: InstallOptions): string | undefined;