DEV Community

Cover image for Bun 1.0 got released, its Packager Manager is 10x faster then yarn
Kushal sharma
Kushal sharma

Posted on • Updated on

Bun 1.0 got released, its Packager Manager is 10x faster then yarn

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

Image description

using bun

Image description

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
Enter fullscreen mode Exit fullscreen mode

Now, navigate to your project directory, delete your previous node_modules folder, and run:

bun install
Enter fullscreen mode Exit fullscreen mode

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)

Collapse
 
zaidmaker profile image
DevMirza

Bun doesn't work on Windows :(

Collapse
 
abhishekdm profile image
abhishek dm

You can install it on WSL

Collapse
 
zaidmaker profile image
DevMirza

So will work only on WSL or I can use it in terminal?