Bun is a JavaScript runtime, another alternative between: Nodejs, QuickJS, Deno and among others.
Although it is still in development, Bun is very successful due to its performance, accelerated flows and execution of simpler production codes in resource-limited environments, such as serverless functions.
Bun is a complete toolkit for JavaScript and TypeScript applications.
It was written in Zig and C++, drastically reducing startup time and memory usage.
There are a few ways to install, the most common is to use cURL and add it to your Shell configuration file, just run the commands below:
To test, just create a basic index.js
code:
And run:
Other ways to install can be with npm, Homebrew or Docker:
For more Bun features use bun --help
, visit GitHub repository or web address: https://bun.sh /.