supernpm

supernpm

Warning

This post is more than a year old. Information may be outdated.

Someday Project. A higher wrapper of the following feature.

gimme

chantastic -- chan.dev on X: "A rare update to my zsh package manager function https://t.co/mECFnzshIk" / X

p() {
    if [[ -f bun.lockb ]]; then
        command bun "$@"
    elif [[ -f pnpm-lock.yaml ]]; then
        command pmpm "$@"
    elif [[ -f yarn.lock ]]; then
        command yarn "$@"
    elif [[ -f package-lock. json ]]; then
        command npm "$@"
    else
        command pnpm "$@"
    fi
}
Backlinks (2)
cho.sh