unload

v1.3.5
Execute code when the js-process exits. On all javascript-environments
unload exit onunload SIGINT uncaughtException beforeExit

lint

eslint --ignore-path ./.eslintignore src test

preversion

npm run lint && npm run test

build

npm-run-all build:*

build:browserify

browserify ./src/index.browserify.js > ./dist/unload.js

build:min

uglifyjs --compress --mangle --output dist/unload.min.js -- ./dist/unload.js

pingserver

node ./test/helper/ping-server.node.js

pretest

npm run build

test

concurrently --kill-others -s first "npm run pingserver" "mocha -b test/"

Metadata

Downloads

Maintainers