minimum-node-version
Version:
Figures out the lowest version of Node.js that satisfies package.json engines.node
72 lines (71 loc) • 1.8 kB
JSON
{
"name": "minimum-node-version",
"version": "3.0.0",
"description": "Figures out the lowest version of Node.js that satisfies package.json engines.node",
"main": "src/api-commonjs.js",
"module": "src/api.js",
"files": [
"bin",
"src"
],
"bin": {
"minimum-node-version": "bin/cli.js"
},
"scripts": {
"start": "bin/cli.js",
"test": "run-s lint mocha",
"mocha": "mocha --require esm 'test/**/*-test.{m,}js'",
"mocha-watch": "mocha --watch --require esm 'test/**/*-test.{m,}js'",
"lint": "standard",
"lint-fix": "standard --fix",
"prepare": "run-s documentation",
"documentation": "documentation readme --section=API --shallow --format=md src/api.js"
},
"lint-staged": {
"*.{mjs,js,jsx}": [
"standard --fix",
"git add"
]
},
"repository": "hugojosefson/minimum-node-version",
"keywords": [
"node",
"nodejs",
"version",
"minimum",
"semver",
"babel-preset-env",
"satisfies"
],
"author": "Hugo Josefson <hugo@josefson.org> (https://www.hugojosefson.com/)",
"license": "ISC",
"comment-engines.node": "Not using babel, code seems to work from v6.0.0 and up.",
"engines": {
"node": "^10.13.0 || >=12.0.0"
},
"comment-esm.cjs": "Allow destructuring import from common-js modules.",
"esm": {
"cjs": true
},
"devDependencies": {
"documentation": "^13.1.0",
"husky": "^4.3.5",
"lint-staged": "^10.5.3",
"mocha": "^8.2.1",
"npm-run-all": "^4.1.2",
"standard": "^16.0.3"
},
"dependencies": {
"engine-check": "^1.0.1",
"esm": "^3.2.25",
"expected-node-version": "^1.0.2",
"node-version-data": "^1.0.1",
"pify": "^5.0.0",
"semver": "^7.3.4"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}