initial commit

This commit is contained in:
Brandon4466
2025-03-31 04:45:14 -07:00
commit ff59c4c0b8
2298 changed files with 478992 additions and 0 deletions

41
node_modules/when-exit/readme.md generated vendored Normal file
View File

@@ -0,0 +1,41 @@
# WhenExit
Execute a function right before the process, or the browser's tab, is about to exit.
## Install
```sh
npm install when-exit
```
## Usage
```ts
import whenExit from 'when-exit';
// Registering multiple callbacks
onExit ( () => {
console.log ( 'Callback 1' );
});
onExit ( () => {
console.log ( 'Callback 2' );
});
// Registering and disposing a callback
const disposer = onExit ( () => {
console.log ( 'Callback 3' );
});
disposer ();
// Triggering the process to exit
process.exit (); // Callback 1 and 2 are called before exiting
```
## License
MIT © Fabio Spampinato