--- name: Listen for CTRL+C --- The `ctrl+c` shortcut sends an _interrupt signal_ to the running process. This signal can be intercepted by listening for the `SIGINT` event. If you want to close the process, you must explicitly call `process.exit()`. ```ts process.on("SIGINT", () => { console.log("Ctrl-C was pressed"); process.exit(); }); ``` --- See [Docs > API > Utils](/docs/api/utils) for more useful utilities. ble id='header'> cgit logo index : bun
Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/integration/bunjs-only-snippets/fs-stream.js (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2022-06-22Handle integer overflow in logs betterGravatar Jarred Sumner 1-4/+2
2022-06-22[JS Printer] Fix bug with printing re-exported functions that are from an obj...Gravatar Jarred Sumner 1-33/+57
2022-06-22Fix bug with `browser` disabled modulesGravatar Jarred Sumner 1-12/+29
2022-06-22Disable modules in the linkerGravatar Jarred Sumner 1-0/+6
2022-06-22this assertion isn't good enoughGravatar Jarred Sumner 1-1/+1
2022-06-22Disable modules constently for bun in`bun bun`Gravatar Jarred Sumner 1-0/+16
2022-06-22Fix bug with exceptions inside EventTargetGravatar Jarred Sumner 11-137/+413
2022-06-22Add a way to schedule microtasks from C++Gravatar Jarred Sumner 5-35/+77
2022-06-22Update javascript.zigGravatar Jarred Sumner 1-13/+152
2022-06-22Clean up perf hooks a littleGravatar Jarred Sumner 1-9/+21
2022-06-22use JSValue for `bun test`Gravatar Jarred Sumner 1-13/+19