- Yearly new releases of
- Typescript becoming the norm because of the enhanced Developer experience.
- Use of JSX in almost every development framework.
A little bit ago, we got Deno. While it is just No-De reversed as De-No, it does more than that.
It's features are listed on their website :
But, Deno essentially failed, because :
Deno only really sported "minor features" from a users perspective. It had a cleaner codebase, used up-to-date best-practices, and had better security, but those things are really only "features" to a user, not a product in themselves.
We all know V8, the JS Engine behind Chrome and NodeJS.
But Bun uses something different -
In Bun, this is implemented from scratch using
Zig which is a
low-level general purpose language like C or Rust for building fast applications.
The above implementation provides better performance and memory management during Start and Runtimes, combined with the promise of mind-blowing speed, you have a real competitor of NodeJS.
Bun has a lot of great features that makes it worthy.
Bun is like a Drop-In replacement for NodeJS thanks to the native implementation of 100s of Node modules
Bun also uses the
package.json file for dependencies, so less learning curve from NodeJS and
bun install is really fast 👇
Before the dawn of Bun, running typescript was tedious and slow. Bun comes with built in support for running Typescript in your projects and makes it faster.
Remember those days where you had to convert your project from the old
require syntax to
import syntax? Some libraries still not support the import syntax perfectly with Typescript.
This all goes away with Bun. You can write either or both.
You love the Test driven development? Or are you just starting with it? It doesn't matter. Because you do not have to go and learn a new testing framework to do the job.
Bun comes with built-in testing support, and so it is much faster from the other ones out there.
Installing Bun is as simple as below :
curl -fsSL https://bun.sh/install | bash
Ready to develop your own service? Create a new file :
server.ts and add the following code :
Now to start listening to requests, run the following command(no intermediate step of converting to
.js separately) :
Do you want to use Bun in your projects? Checkout their official website for Getting Started and installation guides here : Bun.js