--- name: Detect when code is executed with Bun --- The recommended way to conditionally detect when code is being executed with `bun` is to check for the existence of the `Bun` global. This is similar to how you'd check for the existence of the `window` variable to detect when code is being executed in a browser. ```ts if (typeof Bun !== "undefined") { // this code will only run when the file is run with Bun } ``` --- In TypeScript environments, the previous approach will result in a type error unless `bun-types` is globally installed. To avoid this, you can check `process.versions` instead. ```ts if (process.versions.bun) { // this code will only run when the file is run with Bun } ``` hub_actions/actions/dependency-review-action-4.3.3 Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/plugin/ready (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2019-07-28Fix typoGravatar Michael Grosser 1-1/+1
2019-07-28release: coredns 1.6.0 release (#3058)Gravatar Miek Gieben 20-39/+59
2019-07-28contrib: add words on adding new plugins (#3057)Gravatar Miek Gieben 1-0/+10
2019-07-27plugin/file: z.Expired needs be read under a rlock (#3056)Gravatar Miek Gieben 2-2/+5
2019-07-27plugin/file: allow README.md testing (#3052)Gravatar Miek Gieben 4-16/+18
2019-07-26More note tweaks; couple of typos for 1.6.0 (#3049)Gravatar Miek Gieben 1-18/+19
2019-07-25Update CONTRIBUTING.md for dependency update methods (go dep -> go mod) (#3048)Gravatar Yong Tang 1-11/+6
2019-07-25update to client-go 12.0.0 (#3047)Gravatar Chris O'Haver 2-23/+37
2019-07-25Update CONTRIBUTING.md (#3046)Gravatar Yong Tang 2-1/+9
2019-07-25plugin/host: don't append the names when reparsing hosts file (#3045)Gravatar Miek Gieben 9-171/+147