The bun is a new javascript run time environment in the beta stage. The bun is only available for testing and not for deployment. You can easily install bun in your system like Windows, Linux or macOS.
curl https://bun.sh/install | bash
The output of the command.
According to the curl output, you add the path in .bashrc
the file. You edit
.bashrc
file with nano or any other IDE or editor.
nano .bashrc
After your .bashrc
file is open in your nano editor. Now you paste the bun
configuration code into the .bashrc
file.
BUN_INSTALL="/home/{YOUR-USER-NAME}/.bun"
PATH="$BUN_INSTALL/bin:$PATH"
.bashrc
file in nano?ctrl + o
commandsctrl + x
close the nano editor.Now your .bashrc
file is saved.
To check the bun installation, you run the bun version and help the command for verification.
bun --version
0.1.2
bun --help
bun: a fast bundler, transpiler, JavaScript Runtime and package manager for web software.
dev ./a.ts ./b.jsx Start a bun Dev Server
bun ./a.ts ./b.jsx Bundle dependencies of input files into a .bun
create next ./app Start a new project from a template (bun c)
run test Run JavaScript with bun, a package.json script, or a bin
install Install dependencies for a package.json (bun i)
add @compiled/react Add a dependency to package.json (bun a)
remove backbone Remove a dependency from package.json (bun rm)
upgrade Get the latest version of bun
completions Install shell completions for tab-completion
discord Open bun's Discord server
help Print this help menu
The bun is a game change run time environment for javascript. I know bun is a beta stage. Shortly, the bun is successfully implanted in the javascript world. Then it changes the entire javascript ecosystem.