supernpm
Someday Project. A higher wrapper of the following feature.
p() {
if [ -f bun.lockb ](/r/ -f bun.lockb ); then
command bun "$@"
elif [ -f pnpm-lock.yaml ](/r/ -f pnpm-lock.yaml ); then
command pmpm "$@"
elif [ -f yarn.lock ](/r/ -f yarn.lock ); then
command yarn "$@"
elif [ -f package-lock. json ](/r/ -f package-lock. json ); then
command npm "$@"
else
command pnpm "$@"
fi
}