Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

microjob

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

microjob - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

dist/index.d.ts

25

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc