Hi! Recently, Bun 1.0 was released on September 8th. Bun is an all-in-one toolkit designed for building, testing, debugging, and running JavaScript and TypeScript applications. It has now reached a stable, production-ready status, and it's impressively faster.
I recently used Bun as an alternative to installing packages in my project folder, and the difference in speed is remarkable. While using Yarn, it took 21.13 seconds to install the packages, but Bun managed to install all the packages in less than one second.
Here's a comparison between using Yarn and Bun:
using yarn
using bun
I highly recommend giving Bun a try and comparing it with the package manager you are currently using.
How to Install
npm install -g bun
Now, navigate to your project directory, delete your previous node_modules folder, and run:
bun install
Additionally, you can use Bun as a bundler and a test runner. I initially tested its package manager capabilities and couldn't wait to share this with you. Later I will try its bunder feature and let you know the comparision
If you are on Twitter, can you follow me there as well? I post these kinds of stuff there as well. => Follow @kushal_js
Top comments (3)
Bun doesn't work on Windows :(
You can install it on WSL
So will work only on WSL or I can use it in terminal?