node-cleanup
Advanced tools
Comparing version 2.1.1 to 2.1.2
{ | ||
"name": "node-cleanup", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "installs custom cleanup handlers that run on exiting node", | ||
@@ -36,2 +36,3 @@ "main": "node-cleanup.js", | ||
"homepage": "https://github.com/jtlapp/node-cleanup#readme", | ||
"license": "MIT", | ||
"devDependencies": { | ||
@@ -38,0 +39,0 @@ "memory-streams": "^0.1.0", |
@@ -153,3 +153,4 @@ # node-cleanup | ||
``` | ||
sudo npm install -g tap | ||
npm install -g tap | ||
npm install | ||
tap tests/*.js | ||
@@ -161,3 +162,4 @@ ``` | ||
``` | ||
sudo npm install -g subtap | ||
npm install -g subtap | ||
npm install | ||
subtap | ||
@@ -178,1 +180,27 @@ ``` | ||
This module began by borrowing and modifying code from CanyonCasa's [answer to a stackoverflow question](http://stackoverflow.com/a/21947851/650894). I had found the code necessary for all my node projects. @Banjocat piped in with a [comment](http://stackoverflow.com/questions/14031763/doing-a-cleanup-action-just-before-node-js-exits/21947851#comment68567869_21947851) about how the solution didn't properly handle SIGINT. (See [this detailed explanation](https://www.cons.org/cracauer/sigint.html) of the SIGINT problem). I have completely rewritten the module to properly deal with SIGINT and other signals (I hope!). The rewrite also provides some additional flexibility that @zixia and I found ourselves needing for our respective projects. | ||
## License | ||
*This license applies to v2 and later. v1 derived from [this stackoverflow answer](http://stackoverflow.com/a/21947851/650894).* | ||
MIT License | ||
Copyright (c) 2016 Joseph T. Lapp | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
54267
12
0
204