Bun (software)
Developer(s) | Oven |
---|---|
Stable release | 1.1.4[1]
/ 16 April 2024 |
Repository | github |
Written in | Zig |
Type | Runtime environment |
License | MIT license[2] |
Website | bun |
Bun is a JavaScript runtime, package manager, test runner and bundler built from scratch using the Zig programming language.[3][4] It was designed by Jarred Sumner as a drop-in replacement for Node.js. Bun uses WebKit's JavaScriptCore as the JavaScript engine,[5] unlike Node.js and Deno, which both use V8.
It supports bundling, minifying, server-side rendering (Svelte, Nuxt.js, Vite). 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.[6] Minifying is a technique of compressing these files by removing unnecessary characters (like whitespace, comments, etc.) without affecting their functionality, further optimizing website loading times. Bun provides an API to decide whether to preserver some readability by e.g. keeping whitespace.[6]
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.[7]
Since Bun 1.1 the runtime supports Windows 10 and later (along with Linux and MacOS).[8][9] It also introduced a cross-platform Bun Shell for running some Bash commands without extra dependencies.[8][9]
See also[edit]
References[edit]
- ^ "Release 1.1.4". 16 April 2024. Retrieved 21 April 2024.
- ^ Sumner, Jarred (2023-07-02). "License". Bun Docs. Retrieved 2023-07-07.
- ^ "What is Bun? | Bun Docs". Bun. Retrieved 2024-04-01.
- ^ 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.
- ^ a b "The Bun Bundler". Bun. 2023-05-16. Retrieved 2024-04-03.
- ^ "Bun APIs". Bun Docs. Retrieved September 11, 2023.
- ^ a b "Bun 1.1". Bun. 2024-04-01. Retrieved 2024-04-03.
- ^ a b Anderson, Tim (2024-04-02). "Bun 1.1 released with Windows support, stable WebSocket client and more • DEVCLASS". DEVCLASS. Retrieved 2024-04-03.
External links[edit]
- Official website
- bun on GitHub
- An Introduction to the Bun JavaScript Runtime - Sitepoint, May 11, 2023