Comparing version 0.1.1 to 0.2.0
{ | ||
"name": "microjob", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "A tiny wrapper for Node.js worker_threads lib", | ||
"main": "src/job.js", | ||
"main": "dist/job.js", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"test": "node --experimental-worker node_modules/.bin/_mocha ./test", | ||
"build": "npm run clean; tsc; npm run copy-assets", | ||
"copy-assets": "cp src/worker.js dist; cp index.d.ts dist", | ||
"clean": "rm -rf dist", | ||
"test": "node --experimental-worker node_modules/.bin/_mocha -r ts-node/register ./test/**/*.ts", | ||
"test-watch": "node --experimental-worker node_modules/.bin/_mocha --watch-extensions ts -r ts-node/register ./test/**/*.ts --watch -R min", | ||
"docs": "gitbook build . docs", | ||
"serve-docs": "gitbook serve", | ||
"lint": "eslint src/job.js" | ||
"lint": "tslint src/**/*.ts", | ||
"prerelease": "npm run lint; npm test; npm run build; npm run docs" | ||
}, | ||
@@ -31,9 +37,12 @@ "engines": { | ||
"devDependencies": { | ||
"@types/chai": "^4.1.4", | ||
"@types/mocha": "^5.2.5", | ||
"@types/node": "^10.9.4", | ||
"chai": "^4.1.2", | ||
"eslint": "^5.5.0", | ||
"eslint-config-airbnb-base": "^13.1.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"gitbook-cli": "^2.3.2", | ||
"mocha": "^5.2.0" | ||
"mocha": "^5.2.0", | ||
"ts-node": "^7.0.1", | ||
"tslint": "^5.11.0", | ||
"typescript": "^3.0.3" | ||
} | ||
} |
@@ -15,2 +15,4 @@ # Microjob | ||
More details explained in: **[Microjob: a tiny multithreading library for Node.js](https://hackernoon.com/microjob-a-tiny-multithreading-library-for-node-js-92d0500b07d5)** | ||
## Installation | ||
@@ -26,3 +28,3 @@ Via **npm**: | ||
(async () => { | ||
const { job } = require('microjob') | ||
const { job, stop } = require('microjob') | ||
@@ -44,2 +46,5 @@ try { | ||
} | ||
// graceful shutdown | ||
stop() | ||
})() | ||
@@ -49,3 +54,3 @@ ``` | ||
## Documentation | ||
Dive deep into the documentation to find more examples: **[API](API.md)** | ||
Dive deep into the documentation to find more examples: **[Guide](GUIDE.md)** | ||
@@ -52,0 +57,0 @@ ## Known Issues |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
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
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
11596
9
197
58
9
2