hardware-concurrency
Version:
Utilities for the number of logical cores.
68 lines (67 loc) • 2.31 kB
JSON
{
"name": "hardware-concurrency",
"version": "0.1.4",
"description": "Utilities for the number of logical cores.",
"keywords": [
"concurrency",
"threads",
"cores",
"cpus"
],
"files": [
"lib",
"src"
],
"main": "lib/es2018/index.js",
"types": "lib/es2018/index.d.ts",
"browser": {
"./lib/es2015/get-hardware-concurrency.js": "./lib/es2015/get-hardware-concurrency.browser.js",
"./lib/es2018/get-hardware-concurrency.js": "./lib/es2018/get-hardware-concurrency.browser.js"
},
"repository": "git@github.com:BlackGlory/hardware-concurrency.git",
"author": "BlackGlory <woshenmedoubuzhidao@blackglory.me>",
"license": "MIT",
"sideEffects": false,
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx --quiet src __tests__",
"test": "jest --no-cache --config jest.config.js",
"test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand",
"test:coverage": "jest --coverage --config jest.config.js",
"prepublishOnly": "run-s clean build",
"clean": "rimraf lib",
"build": "run-p build:*",
"build:es2015": "run-s build:es2015:*",
"build:es2015:compile": "tsc --project tsconfig.build.json --module commonjs --target es2015 --outDir lib/es2015",
"build:es2015:patch": "tscpaths -p tsconfig.build.json -s ./src -o ./lib/es2015",
"build:es2018": "run-s build:es2018:*",
"build:es2018:compile": "tsc --project tsconfig.build.json --module commonjs --target es2018 --outDir lib/es2018",
"build:es2018:patch": "tscpaths -p tsconfig.build.json -s ./src -o ./lib/es2018",
"release": "standard-version"
},
"husky": {
"hooks": {
"pre-commit": "run-s lint build test",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"devDependencies": {
"@commitlint/cli": "^16.2.3",
"@commitlint/config-conventional": "^16.2.1",
"@types/jest": "^27.4.1",
"@typescript-eslint/eslint-plugin": "^5.19.0",
"@typescript-eslint/parser": "^5.19.0",
"eslint": "^8.13.0",
"husky": "^4.3.8",
"jest": "^27.5.1",
"npm-run-all": "^4.1.5",
"rimraf": "^3.0.2",
"standard-version": "^9.3.2",
"ts-jest": "^27.1.4",
"tscpaths": "^0.0.9",
"tslib": "^2.3.1",
"typescript": "^4.6.3"
},
"dependencies": {
"value-getter": "^0.2.3"
}
}