Bun itself is MIT-licensed. ## JavaScriptCore Bun statically links JavaScriptCore (and WebKit) which is LGPL-2 licensed. WebCore files from WebKit are also licensed under LGPL2. Per LGPL2: > (1) If you statically link against an LGPL’d library, you must also provide your application in an object (not necessarily source) format, so that a user has the opportunity to modify the library and relink the application. You can find the patched version of WebKit used by Bun here: . If you would like to relink Bun with changes: - `git submodule update --init --recursive` - `make jsc` - `zig build` This compiles JavaScriptCore, compiles Bun’s `.cpp` bindings for JavaScriptCore (which are the object files using JavaScriptCore) and outputs a new `bun` binary with your changes. ## Linked libraries Bun statically links these libraries: {% table %} - Library - License --- - [`boringssl`](https://boringssl.googlesource.com/boringssl/) - [several licenses](https://boringssl.googlesource.com/boringssl/+/refs/heads/master/LICENSE) --- - [`libarchive`](https://github.com/libarchive/libarchive) - [several licenses](https://github.com/libarchive/libarchive/blob/master/COPYING) --- - [`lol-html`](https://github.com/cloudflare/lol-html/tree/master/c-api) - BSD 3-Clause --- - [`mimalloc`](https://github.com/microsoft/mimalloc) - MIT --- - [`picohttp`](https://github.com/h2o/picohttpparser) - dual-licensed under the Perl License or the MIT License --- - [`simdutf`](https://github.com/simdutf/simdutf) - Apache 2.0 --- - [`tinycc`](https://github.com/tinycc/tinycc) - LGPL v2.1 --- - [`uSockets`](https://github.com/uNetworking/uSockets) - Apache 2.0 --- - [`zlib-cloudflare`](https://github.com/cloudflare/zlib) - zlib --- - [`c-ares`](https://github.com/c-ares/c-ares) - MIT licensed --- - [`libicu`](https://github.com/unicode-org/icu) 72 - [license here](https://github.com/unicode-org/icu/blob/main/icu4c/LICENSE) --- - A fork of [`uWebsockets`](https://github.com/jarred-sumner/uwebsockets) - Apache 2.0 licensed {% /table %} ## Polyfills For compatibility reasons, the following packages are embedded into Bun's binary and injected if imported. {% table %} - Package - License --- - [`assert`](https://npmjs.com/package/assert) - MIT --- - [`browserify-zlib`](https://npmjs.com/package/browserify-zlib) - MIT --- - [`buffer`](https://npmjs.com/package/buffer) - MIT --- - [`constants-browserify`](https://npmjs.com/package/constants-browserify) - MIT --- - [`crypto-browserify`](https://npmjs.com/package/crypto-browserify) - MIT --- - [`domain-browser`](https://npmjs.com/package/domain-browser) - MIT --- - [`events`](https://npmjs.com/package/events) - MIT --- - [`https-browserify`](https://npmjs.com/package/https-browserify) - MIT --- - [`os-browserify`](https://npmjs.com/package/os-browserify) - MIT --- - [`path-browserify`](https://npmjs.com/package/path-browserify) - MIT --- - [`process`](https://npmjs.com/package/process) - MIT --- - [`punycode`](https://npmjs.com/package/punycode) - MIT --- - [`querystring-es3`](https://npmjs.com/package/querystring-es3) - MIT --- - [`stream-browserify`](https://npmjs.com/package/stream-browserify) - MIT --- - [`stream-http`](https://npmjs.com/package/stream-http) - MIT --- - [`string_decoder`](https://npmjs.com/package/string_decoder) - MIT --- - [`timers-browserify`](https://npmjs.com/package/timers-browserify) - MIT --- - [`tty-browserify`](https://npmjs.com/package/tty-browserify) - MIT --- - [`url`](https://npmjs.com/package/url) - MIT --- - [`util`](https://npmjs.com/package/util) - MIT --- - [`vm-browserify`](https://npmjs.com/package/vm-browserify) - MIT {% /table %} ## Additional credits - Bun's JS transpiler, CSS lexer, and Node.js module resolver source code is a Zig port of [@evanw](https://github.com/evanw)’s [esbuild](https://github.com/evanw/esbuild) project. - Credit to [@kipply](https://github.com/kipply) for the name "Bun"! ng-fix Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/bench/snippets/string-decoder.mjs (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2023-02-17Fix #2005 (#2096)Gravatar Justin Whear 2-1/+60
2023-02-17allow `bun add` of packages with capital letters (#2095)Gravatar Alex Lam S.L 3-2/+53
2023-02-16faster Buffer.byteLength("latin1")Gravatar Jarred Sumner 1-36/+28
2023-02-16Support yarn-like `"workspaces"."packages": string[]` (#2086)Gravatar Jarred Sumner 2-97/+253
2023-02-16Implement `machine` for Linux (#2088)Gravatar Justin Whear 3-0/+19
2023-02-16Fix #1516 (#2089)Gravatar Justin Whear 3-7/+14
2023-02-16Update globals.d.tsGravatar Jarred Sumner 1-0/+15
2023-02-16Add missing type definitionGravatar Jarred Sumner 1-0/+2
2023-02-16[napi] Fix crash in creating arrays > 8 elements longGravatar Jarred Sumner 1-10/+9
2023-02-16Clarify and clean up macOS build process (#2087)Gravatar Luke Deen Taylor 2-4/+4
2023-02-15Don't crash on null version stringGravatar Jarred Sumner 1-1/+1
2023-02-15Add disabled optimizationGravatar Jarred Sumner 1-0/+51
2023-02-15Add more logging to napiGravatar Jarred Sumner 1-30/+150
2023-02-15Incorrect implementation of `napi_create_threadsafe_function`Gravatar Jarred Sumner 1-21/+43
2023-02-15feat(fetch) AbortSignal (#2019)Gravatar Ciro Spaciari 17-58/+443
2023-02-15fix(webcrypto): fix ed25519 CryptoKey.algorithm (#2082)Gravatar Derrick Farris 2-9/+28
2023-02-15Fix 2063 (#2079)Gravatar Justin Whear 2-2/+11
2023-02-15Make sure we test * in tesconfigGravatar Jarred Sumner 2-1/+3
2023-02-15don't return an error thereGravatar Jarred Sumner 2-1/+3
2023-02-15Fix castGravatar Jarred Sumner 1-15/+17
2023-02-15ensure we allocate for > 6 argumentsGravatar Jarred Sumner 1-6/+13
2023-02-15Update async_hooks.exports.jsGravatar Jarred Sumner 1-2/+2
2023-02-15workaround prisma's usage of `eval("__dirname")`Gravatar Jarred Sumner 1-1/+23
2023-02-15some cleanupGravatar Jarred Sumner 2-15/+9
2023-02-15ED25519 WebCrypto (#1971)Gravatar Jarred Sumner 12-11/+1167
2023-02-14Fix up async_hooks polyfillGravatar Jarred Sumner 2-8/+63
2023-02-14Add temporary polyfill for async_hooksGravatar Jarred Sumner 5-108/+324
2023-02-14:mask: async_hooksGravatar Jarred Sumner 1-0/+4
2023-02-14[install] link network-delayed `.bin` scripts correctly (#2076)Gravatar Alex Lam S.L 3-16/+21
2023-02-14don't break esbuildGravatar Jarred Sumner 7-75/+50
2023-02-14Add workaround for `tls` and `worker_threads`Gravatar Jarred Sumner 3-1/+64
2023-02-14[install] improve `package.json` validation (#2074)Gravatar Alex Lam S.L 6-104/+342
2023-02-14[WIP] fix(node:fs): export `fs.ReadStream` and `fs.WriteStream` (#1798)Gravatar Derrick Farris 4-72/+326
2023-02-14Reject with error when invalid fetch() body (#2047)Gravatar Eric Zhang 2-12/+44
2023-02-13fix(FormData): make String explicit, thanks @dylan-conway (#2065)Gravatar Derrick Farris 1-1/+1
2023-02-13fix(FormData): add string literal operator (#2064)Gravatar Derrick Farris 1-2/+2
2023-02-13Add pretty printer for FormDataGravatar Jarred Sumner 5-1/+101
2023-02-13Add dynamic port assigning to Bun.serve (#2062)Gravatar Michał Warda 3-5/+40
2023-02-13feat(napi): add `napi_get_value_bigint_words` (#2061)Gravatar Derrick Farris 3-0/+44
2023-02-13Fixes https://github.com/oven-sh/bun/issues/1456Gravatar Jarred Sumner 8-1/+148