Bun makes Node.js tools including
cross-env unnecessary, the Bun team said. And Bun can run
.tsx files, which can replace transpilers such as
Other features of Bun:
- ECMAScript and CommonJS module systems are supported.
- Web-standard APIs are supported such as
WebSocket. Bun APIs were designed to be easy to use and fast.
- Bun is faster than
pnpm, the Bun team said. A global module cache is used to avoid redundant downloads from the NPM registry; the fastest system calls are used from each operating system.
- Hot reloading is enabled, to reload an application when files change.
Production-ready native builds of Bun are provided for macOS and Linux; an experimental native build of Bun for Windows also is available. Bun can be installed with the following command:
$ curl -fsSL https://bun.sh/install | bash
can be done by running