Bun 1.0 is finally here.

Bun is a fast, all-in-one toolkit for running, building, testing, and debugging JavaScript and TypeScript, from a single file to a full-stack application. Today, Bun is stable and production-ready.

Hacker news discussion has a developer of Bun answering questions.

  • g6d3np81@kbin.social
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    1 year ago

    Bun is designed as a drop-in replacement for Node.js. It natively implements hundreds of Node.js and Web APIs, including fs, path, Buffer and more.

    The goal of Bun is to run most of the world’s server-side JavaScript and provide tools to improve performance, reduce complexity, and multiply developer productivity.

    If it can replace node and pnpm at the same time then this sounds quite good actually.

    EDIT
    https://bun.sh/guides/ecosystem/vite

    While Vite currently works with Bun, it has not been heavily optimized, nor has Vite been adapted to use Bun’s bundler, module resolver, or transpiler.

    https://bun.sh/guides/ecosystem/nuxt

    Bun supports Nuxt out of the box. Initialize a Nuxt app with official nuxi CLI.

    • crazyfuckincoder@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      So it can also do tooling like vite but it primarily aims to replace node as a better and faster js runtime since they’re rewritten most js api in zig and c++ from what it shows on their github. I’ll give it a try sometime and see if it’s really all that fast and easy as it claims.