Developer(s) | Oven |
---|---|
Repository | github |
Written in | Zig |
Type | Runtime environment |
License | MIT license[1] |
Website | bun |
Bun is a JavaScript runtime, package manager, test runner bundler built from scratch using the Zig programming language.[2] It was designed by Jarred Sumner as a drop-in replacement for Node.js. Bun uses JavaScriptCore as the JavaScript engine,[3] unlike Node.js and Deno, which both use V8.
It supports bundling, minifying, server-side rendering (SvelteKit, Nuxt.js, Vite). The technology in question offers robust support for several advanced web development practices and frameworks, notably bundling, minifying, and server-side rendering. Bundling refers to the process of combining multiple files and assets like JavaScript, CSS, and HTML into a single file, or a smaller number of files, to reduce the number of server requests and enhance performance. Minifying is the technique of compressing these files by removing unnecessary characters (like whitespace, comments, etc.) without affecting their functionality, further optimizing website loading times.
The runtime supports foreign function interface (FFI), SQLite3, TLS 1.3, and DNS resolution. It also comes bundled in with common tools like file editing, HTTP servers, Websocket, and hashing.[4]
See also
References
- ↑ Sumner, Jarred (2023-07-02). "License". Bun Docs. Retrieved 2023-07-07.
- ↑ Tyson, Matthew (February 23, 2023). "Explore Bun.js: The all-in-one JavaScript runtime". InfoWorld. Retrieved October 11, 2023.
- ↑ Omolana, Timilehin (2022-08-02). "What Is Bun.js and Why Is the JavaScript Community Excited About It?". makeuseof.com. Retrieved 2023-05-30.
- ↑ "Bun APIs". Bun Docs. Retrieved September 11, 2023.
External links
- Official website
- bun on GitHub
- An Introduction to the Bun JavaScript Runtime - Sitepoint, May 11, 2023