UNPKG

interruptor

Version:

Run a function with the possibility to interrupt it from another thread

60 lines (59 loc) 1.76 kB
{ "name": "interruptor", "version": "1.0.2", "description": "Run a function with the possibility to interrupt it from another thread", "main": "lib/index.js", "exports": { "require": "./lib/index.js", "import": "./.esm-wrapper.mjs" }, "engines": { "node": ">= 12.0.0" }, "scripts": { "lint": "eslint {src,test}/**/*.ts", "test": "npm run lint && npm run build && nyc npm run test-only", "test-nolint": "npm run build && npm run test-only", "test-only": "mocha --colors -r ts-node/register test/*.ts", "build": "node-gyp rebuild && npm run compile-ts && gen-esm-wrapper . ./.esm-wrapper.mjs", "prepack": "npm run build", "compile-ts": "tsc -p tsconfig.json" }, "keywords": [ "node.js", "interrupt", "break" ], "author": "Anna Henningsen <anna@addaleax.net>", "homepage": "https://github.com/mongodb-js/interruptor", "repository": { "type": "git", "url": "https://github.com/mongodb-js/interruptor.git" }, "bugs": { "url": "https://github.com/mongodb-js/interruptor/issues" }, "license": "Apache-2.0", "devDependencies": { "@types/mocha": "^8.0.3", "@types/node": "^14.11.1", "@typescript-eslint/eslint-plugin": "^4.2.0", "@typescript-eslint/parser": "^4.2.0", "eslint": "^7.9.0", "eslint-config-semistandard": "^15.0.1", "eslint-config-standard": "^14.1.1", "eslint-plugin-import": "^2.22.0", "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", "gen-esm-wrapper": "^1.1.0", "mocha": "^8.1.3", "node-fetch": "^2.6.1", "nyc": "^15.1.0", "ts-node": "^9.0.0", "typescript": "^4.0.3" }, "dependencies": { "bindings": "^1.5.0" } }