Socket
Socket
Sign inDemoInstall

exit-hook

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exit-hook - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

4

index.js

@@ -39,2 +39,6 @@ 'use strict';

}
return () => {
callbacks.delete(callback);
};
};

2

package.json
{
"name": "exit-hook",
"version": "2.0.0",
"version": "2.1.0",
"description": "Run some code when the process exits",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -39,5 +39,15 @@ # exit-hook [![Build Status](https://travis-ci.org/sindresorhus/exit-hook.svg?branch=master)](https://travis-ci.org/sindresorhus/exit-hook)

Removing an exit hook:
```js
const exitHook = require('exit-hook');
const unsubscribe = exitHook(() => {});
unsubscribe();
```
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc