UNPKG

@node-kit/which-pm

Version:

A simple utility to get which package manager used in the project

20 lines (17 loc) 535 B
/** * whichPM * * @param cwd - the pkg path * @param withVersion - concat the package manager version * @returns result - WorkspaceRootResult | null */ export declare function whichPM(cwd?: string, withVersion?: boolean): Promise<string | null>; /** * whichPMSync * * @param cwd - the pkg path * @param withVersion - concat the package manager version * @returns result - WorkspaceRootResult | null */ export declare function whichPMSync(cwd?: string, withVersion?: boolean): string | null; export { }