Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "microjob", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A tiny wrapper for Node.js worker_threads lib", | ||
@@ -11,8 +11,10 @@ "main": "dist/job.js", | ||
"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", | ||
"pretest": "npm run lint", | ||
"test": "node --experimental-worker node_modules/.bin/jest", | ||
"test-watch": "node --experimental-worker node_modules/.bin/jest --watchAll", | ||
"docs": "gitbook build . docs", | ||
"serve-docs": "gitbook serve", | ||
"lint": "tslint src/**/*.ts", | ||
"prerelease": "npm run lint; npm test; npm run build; npm run docs" | ||
"prerelease": "npm run lint; npm test; npm run build; npm run docs", | ||
"report-coverage": "node --experimental-worker node_modules/.bin/jest --coverage && cat ./coverage/lcov.info | coveralls" | ||
}, | ||
@@ -37,13 +39,45 @@ "engines": { | ||
"homepage": "https://github.com/wilk/microjob#readme", | ||
"jest": { | ||
"collectCoverageFrom": [ | ||
"src/**/*.ts" | ||
], | ||
"coveragePathIgnorePatterns": [ | ||
"<rootDir>/node_modules" | ||
], | ||
"coverageReporters": [ | ||
"json", | ||
"lcov", | ||
"text" | ||
], | ||
"coverageThreshold": { | ||
"global": { | ||
"branches": 90, | ||
"functions": 80, | ||
"lines": 95, | ||
"statements": 90 | ||
} | ||
}, | ||
"transform": { | ||
".ts": "ts-jest" | ||
}, | ||
"testEnvironment": "node", | ||
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.ts?$", | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"js", | ||
"json" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "^4.1.4", | ||
"@types/mocha": "^5.2.5", | ||
"@types/jest": "^23.3.2", | ||
"@types/node": "^10.9.4", | ||
"chai": "^4.1.2", | ||
"coveralls": "^3.0.2", | ||
"gitbook-cli": "^2.3.2", | ||
"mocha": "^5.2.0", | ||
"jest": "^23.6.0", | ||
"ts-jest": "^23.10.0", | ||
"ts-node": "^7.0.1", | ||
"tslint": "^5.11.0", | ||
"typescript": "^3.0.3" | ||
} | ||
}, | ||
"dependencies": {} | ||
} |
# Microjob | ||
[![Build Status](https://travis-ci.org/wilk/microjob.svg?branch=master)](https://travis-ci.org/wilk/microjob) | ||
[![Coverage Status](https://coveralls.io/repos/github/wilk/microjob/badge.svg?branch=feature%2Fcoverage)](https://coveralls.io/github/wilk/microjob?branch=feature%2Fcoverage) | ||
A tiny wrapper for turning [Node.js threads](https://nodejs.org/api/worker_threads.html) in easy-to-use routines for CPU-bound. | ||
![When my multithreaded program works like a charm](https://ljdchost.com/K074MgM.gif) | ||
[When my multithreaded program works like a charm - thecodinglove](https://thecodinglove.com/when-my-multithreaded-program-works-like-a-charm) | ||
## Introduction | ||
@@ -5,0 +12,0 @@ Microjob is a tiny wrapper for Node.js threads and is intended to perform heavy CPU loads using anonymous functions. |
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
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
12955
10
65
1