Intro to Bun 1.0
It is designed to be a drop-in replacement for Node.js. So when using Bun, you don’t need node,
nodemon — it has built-in watch mode,
cross-env — it reads
.env files by default.
Bun also can run different files such as
.tsx, which means now you don’t need babel,
tsx to be installed into your project.
esbuild-compatible plugin API, so you don’t need
And one of the most significant benefit over
yarn is its speed. Bun is npm-compatible package manager with all familiar commands that yarna and npm have. It also reads the
package.json file and writes to
node_modules, but 30x faster, which is a game changer.
It has built-in Jest-compatible test runner so you can write unit tests without installing additional dependencies.
As it is designed to be drop-in replacement for Node.js it has built-in support for the common Node.js modules like
net, global variables like