/js_fatigue_bunjs

bun / bunx - js fatigue sessions aimed to the FE/FS Guild

Primary LanguageTypeScriptApache License 2.0Apache-2.0

js_fatigue_bunjs

bun / bunx

What is Bunjs

A new Javascript runtime based on JavascriptCore (webkit) engine The runtime itself is written in Zig ("its like Rust to the poor" said Cfir.T)

repo: https://github.com/oven-sh/bun Creator: Jarred-Sumner

A package manager (bun run / bunx) A bundler Has built in support in typescript Has built test runner

It claimed to be 3x time faster than nodejs / deno A package installation is 20x faster

It's still in beta

I use it as a package manager and replacement to npx

How to port your ts project to bun:

  • Init new project: bun init
  • Copy your dependencies into the new package.json
  • Run: bun install

How to use this project:

Run the server: bun ./server.ts

Browse to http://localhost:3000/

** In case you're interested on more info of the parser you can find that on this post.