--- name: Get the absolute path to the current entrypoint --- The `Bun.main` property contains the absolute path to the current entrypoint. {% codetabs %} ```ts#foo.ts console.log(Bun.main); ``` ```ts#index.ts import "./foo.ts"; ``` {% /codetabs %} --- The printed path corresponds to the file that is executed with `bun run`. ```sh $ bun run index.ts /path/to/index.ts $ bun run foo.ts /path/to/foo.ts ``` --- See [Docs > API > Utils](/docs/api/utils) for more useful utilities. src='/cgit.png' alt='cgit logo'/> index : bun
Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/bench/snippets/buffer-create.mjs (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2023-05-19Fix typo (#2959)Gravatar Zbyszek Tenerowicz 1-1/+1
2023-05-18set `node_allocator` for sourcemap joiner (#2953)Gravatar Dylan Conway 2-18/+20
2023-05-18Make node:vm 12x fasterGravatar Jarred Sumner 3-10/+39
2023-05-18[node:vm] Propagate global properties defined on the new context objectGravatar Jarred Sumner 2-16/+26
2023-05-18clang-formatGravatar Jarred Sumner 1-14/+15
2023-05-18Implement `node:vm` (#2785)Gravatar Silver 7-46/+482
2023-05-18Fixes #2924Gravatar Jarred Sumner 1-0/+8
2023-05-18handle when cwd is not writable, attempt to use tmp dir explicitlyGravatar Jarred Sumner 2-2/+32
2023-05-18BumpGravatar Jarred Sumner 1-1/+1
2023-05-18Fixes #2946 (#2949)Gravatar Jarred Sumner 3-2/+57
2023-05-18Fixes #2942 (#2947)Gravatar Jarred Sumner 2-1/+154
2023-05-18Implement `expect().toBeCloseTo()` (#2870)Gravatar Degreat 4-3/+167
2023-05-18use raw template contents for tagged templates (#2937)Gravatar Dylan Conway 4-33/+67
2023-05-18Fixes #2928 (#2939)Gravatar Jarred Sumner 4-43/+113
2023-05-17Update fs.test.tsGravatar Jarred Sumner 1-7/+10
2023-05-17Mention setting `target` to `"node"` or `"bun"` when a ResolveMessage occurs ...Gravatar Jarred Sumner 1-2/+2
2023-05-17Fixes https://github.com/oven-sh/bun/issues/2931Gravatar Jarred Sumner 2-1/+30
2023-05-17Update benchmarking.mdGravatar Jarred Sumner 1-1/+1
2023-05-17Support static string values in our class bindings generatorGravatar Jarred Sumner 2-2/+26
2023-05-17Make `BuildError` and `ResolveError` use C++ instead of JSC C APIGravatar Jarred Sumner 23-515/+2067
2023-05-17Update json-parse-stringify.mjsbun-v0.6.2Gravatar Jarred Sumner 1-2/+2