supernpm
Someday Project. A higher wrapper of the following feature.
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
}