JS Utils Kit
    Preparing search index...

    Interface DetectPMResult

    Result returned by detectPM

    interface DetectPMResult {
        isBun: boolean;
        isNpm: boolean;
        isPackageManager: boolean;
        isPnpm: boolean;
        isYarn: boolean;
        name?: "pnpm" | "npm" | "yarn" | "bun";
    }
    Index

    Properties

    isBun: boolean

    True if bun is detected

    isNpm: boolean

    True if npm is detected

    isPackageManager: boolean

    Indicates whether any package manager was detected.

    isPnpm: boolean

    True if pnpm is detected

    isYarn: boolean

    True if yarn is detected

    name?: "pnpm" | "npm" | "yarn" | "bun"

    Detected package manager name.

    undefined if no package manager could be determined.