![]() Node.js compatibilityīun is a drop-in replacement for Node.js. Its goal is to make the experience of building software faster, less frustrating, and more fun. Bun is a JavaScript runtimeīun is a fast JavaScript runtime. ![]() Each tool in this toolkit provides a best-in-class developer experience, from performance to API design. They perform a lot of redundant work when you run jest, your code will be parsed 3+ times by various tools! And the duct tape, plugins, and adapters required to stitch everything together always frays eventually.īun is a single integrated toolkit that avoids these integration problems. While these tools are each good in their own right (mostly), using them all together inevitably creates fragility and a slow developer experience. Testing libraries - Bun is a Jest-compatible test runner with support for snapshot testing, mocking, and code coverage, so you no longer need: It reads your package.json and writes to node_modules, just like other package managers, so you can replace: Package managers - Bun is an npm-compatible package manager with familiar commands. tsc - (but you can keep it for typechecking!)īundlers - Bun is a JavaScript bundler with best-in-class performance and an esbuild-compatible plugin API, so you don't need:.node-fetch, isomorphic-fetch - built-in fetch.Node.js - Bun is a drop-in replacement for Node.js, so you don't need: You will however need to unlearn the many tools that Bun makes unnecessary: Your favorite libraries and frameworks should still work, and you shouldn't need to unlearn the conventions you're familiar with. Why Bun existsīun's goal is simple: eliminate slowness and complexity without throwing away everything that's great about JavaScript. And like any system that grows and evolves without centralized planning, JavaScript tooling has become slow and complex. However, since Node.js debuted 14 years ago, layers and layers of tooling have accumulated on top of each other. It's mature, it moves fast, and its developer community is vibrant and passionate.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |