A lot of existing websites that advertise NPM libraries have an easy copy/paste button that copies npm install {package}.
It gets somewhat tedious having to replacenpm with bun add package. I know that bun install or even bun install --save-dev works, but it would useful if I could just copy/paste npm anyways.
What is the feature you are proposing to solve the problem?
bun npm install {package}
Whenever npm is given as an argument, Bun could just run the equivalent NPM command, factoring in for things like npm i or even other package mangers PNPM or Yarn.
This would be really convenient and work towards Bun's mission of being the drop-in Node.js replacement.
What alternatives have you considered?
Replacing every npm with bun works, but the time adds up.
What is the problem this feature would solve?
A lot of existing websites that advertise NPM libraries have an easy copy/paste button that copies
npm install {package}
.It gets somewhat tedious having to replace
npm
withbun add package
. I know thatbun install
or evenbun install --save-dev
works, but it would useful if I could just copy/pastenpm
anyways.What is the feature you are proposing to solve the problem?
bun npm install {package}
Whenever
npm
is given as an argument, Bun could just run the equivalent NPM command, factoring in for things likenpm i
or even other package mangers PNPM or Yarn.This would be really convenient and work towards Bun's mission of being the drop-in Node.js replacement.
What alternatives have you considered?
Replacing every
npm
withbun
works, but the time adds up.