Comparing version 2.1.0 to 2.2.0
{ | ||
"name": "exit-hook", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Run some code when the process exits", | ||
@@ -16,6 +16,7 @@ "license": "MIT", | ||
"scripts": { | ||
"test": "xo && ava" | ||
"test": "xo && ava && tsd" | ||
}, | ||
"files": [ | ||
"index.js" | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
@@ -39,6 +40,7 @@ "keywords": [ | ||
"devDependencies": { | ||
"ava": "*", | ||
"execa": "^0.10.0", | ||
"xo": "*" | ||
"ava": "^1.4.1", | ||
"execa": "^1.0.0", | ||
"tsd": "^0.7.2", | ||
"xo": "^0.24.0" | ||
} | ||
} |
@@ -50,4 +50,17 @@ # exit-hook [![Build Status](https://travis-ci.org/sindresorhus/exit-hook.svg?branch=master)](https://travis-ci.org/sindresorhus/exit-hook) | ||
## API | ||
### exitHook(callback) | ||
Returns a function that removes the hook when called. | ||
#### callback | ||
Type: `Function` | ||
The callback to execute when the process exits. | ||
## License | ||
MIT © [Sindre Sorhus](https://sindresorhus.com) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4570
5
60
66
4