{"_id":"node-environment-flags","_rev":"62346","name":"node-environment-flags","description":"> Polyfill/shim for `process.allowedNodeEnvironmentFlags`","dist-tags":{"latest":"1.0.6"},"maintainers":[{"name":"boneskull","email":"boneskull@boneskull.com"}],"time":{"modified":"2021-06-03T10:21:07.000Z","created":"2018-11-13T00:29:48.902Z","1.0.6":"2019-06-25T15:51:03.546Z","1.0.5":"2019-04-11T23:07:46.776Z","1.0.4":"2019-01-29T19:32:26.539Z","1.0.3":"2019-01-28T20:45:17.100Z","1.0.2":"2018-11-20T22:14:01.841Z","1.0.1":"2018-11-14T05:28:28.922Z","1.0.0":"2018-11-13T00:29:48.902Z"},"users":{},"author":{"name":"Christopher Hiller","email":"boneskull@boneskull.com","url":"https://boneskull.com/"},"repository":{"type":"git","url":"git+https://github.com/boneskull/node-environment-flags.git"},"versions":{"1.0.6":{"name":"node-environment-flags","version":"1.0.6","description":"> Polyfill/shim for `process.allowedNodeEnvironmentFlags`","main":"index.js","scripts":{"test":"mocha","format":"prettier-eslint --write \"*.js\" \"*.json\" \"test/**/*.js\"","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once"},"keywords":[],"author":{"name":"Christopher Hiller","email":"boneskull@boneskull.com","url":"https://boneskull.com/"},"license":"Apache-2.0","devDependencies":{"eslint":"^5.9.0","eslint-config-prettier":"^3.3.0","eslint-config-semistandard":"^13.0.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.14.0","eslint-plugin-node":"^8.0.0","eslint-plugin-prettier":"^3.0.0","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","husky":"^1.1.3","lint-staged":"^8.0.4","mocha":"^5.2.0","nyc":"^14.1.1","prettier-eslint-cli":"^4.7.1","semantic-release":"^15.13.16","travis-deploy-once":"^5.0.9","unexpected":"^10.39.1"},"dependencies":{"object.getownpropertydescriptors":"^2.0.3","semver":"^5.7.0"},"lint-staged":{"*.{js,json}":["prettier-eslint --write","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"prettier":{"singleQuote":true,"bracketSpacing":false},"repository":{"type":"git","url":"git+https://github.com/boneskull/node-environment-flags.git"},"gitHead":"fbf451941e4721392c7c346de843514d7ad14a95","bugs":{"url":"https://github.com/boneskull/node-environment-flags/issues"},"homepage":"https://github.com/boneskull/node-environment-flags#readme","_id":"node-environment-flags@1.0.6","_nodeVersion":"11.15.0","_npmVersion":"6.9.0","dist":{"shasum":"a30ac13621f6f7d674260a54dede048c3982c088","size":6647,"noattachment":false,"key":"/node-environment-flags/-/node-environment-flags-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-environment-flags/download/node-environment-flags-1.0.6.tgz"},"maintainers":[{"name":"boneskull","email":"boneskull@boneskull.com"}],"_npmUser":{"name":"boneskull","email":"boneskull@boneskull.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-environment-flags_1.0.6_1561477863437_0.8458236043972476"},"_hasShrinkwrap":false,"publish_time":1561477863546,"_cnpm_publish_time":1561477863546},"1.0.5":{"name":"node-environment-flags","version":"1.0.5","description":"> Polyfill/shim for `process.allowedNodeEnvironmentFlags`","main":"index.js","scripts":{"test":"mocha","format":"prettier-eslint --write \"*.js\" \"*.json\" \"test/**/*.js\"","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once"},"keywords":[],"author":{"name":"Christopher Hiller","email":"boneskull@boneskull.com","url":"https://boneskull.com/"},"license":"Apache-2.0","devDependencies":{"eslint":"^5.9.0","eslint-config-prettier":"^3.3.0","eslint-config-semistandard":"^13.0.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.14.0","eslint-plugin-node":"^8.0.0","eslint-plugin-prettier":"^3.0.0","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","husky":"^1.1.3","lint-staged":"^8.0.4","mocha":"^5.2.0","nyc":"^13.3.0","prettier-eslint-cli":"^4.7.1","semantic-release":"^15.13.8","travis-deploy-once":"^5.0.9","unexpected":"^10.39.1"},"dependencies":{"object.getownpropertydescriptors":"^2.0.3","semver":"^5.7.0"},"lint-staged":{"*.{js,json}":["prettier-eslint --write","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"prettier":{"singleQuote":true,"bracketSpacing":false},"repository":{"type":"git","url":"git+https://github.com/boneskull/node-environment-flags.git"},"gitHead":"b781e0512f47ef33716f1a8553e02dcc0d0f3116","bugs":{"url":"https://github.com/boneskull/node-environment-flags/issues"},"homepage":"https://github.com/boneskull/node-environment-flags#readme","_id":"node-environment-flags@1.0.5","_npmVersion":"6.5.0","_nodeVersion":"11.14.0","_npmUser":{"name":"boneskull","email":"boneskull@boneskull.com"},"dist":{"shasum":"fa930275f5bf5dae188d6192b24b4c8bbac3d76a","size":3076,"noattachment":false,"key":"/node-environment-flags/-/node-environment-flags-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-environment-flags/download/node-environment-flags-1.0.5.tgz"},"maintainers":[{"name":"boneskull","email":"boneskull@boneskull.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-environment-flags_1.0.5_1555024066535_0.22639519979372702"},"_hasShrinkwrap":false,"publish_time":1555024066776,"_cnpm_publish_time":1555024066776},"1.0.4":{"name":"node-environment-flags","version":"1.0.4","description":"> Polyfill/shim for `process.allowedNodeEnvironmentFlags`","main":"index.js","scripts":{"test":"mocha","format":"prettier-eslint --write \"*.js\" \"*.json\" \"test/**/*.js\"","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once"},"keywords":[],"author":{"name":"Christopher Hiller","email":"boneskull@boneskull.com","url":"https://boneskull.com/"},"license":"Apache-2.0","devDependencies":{"eslint":"^5.9.0","eslint-config-prettier":"^3.3.0","eslint-config-semistandard":"^13.0.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.14.0","eslint-plugin-node":"^8.0.0","eslint-plugin-prettier":"^3.0.0","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","husky":"^1.1.3","lint-staged":"^8.0.4","mocha":"^5.2.0","nyc":"^13.1.0","prettier-eslint-cli":"^4.7.1","semantic-release":"^15.11.0","travis-deploy-once":"^5.0.9","unexpected":"^10.39.1"},"dependencies":{"object.getownpropertydescriptors":"^2.0.3"},"lint-staged":{"*.{js,json}":["prettier-eslint --write","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"prettier":{"singleQuote":true,"bracketSpacing":false},"repository":{"type":"git","url":"git+https://github.com/boneskull/node-environment-flags.git"},"gitHead":"72ed34f6609e3bafb1b67d56470604f23e68281c","bugs":{"url":"https://github.com/boneskull/node-environment-flags/issues"},"homepage":"https://github.com/boneskull/node-environment-flags#readme","_id":"node-environment-flags@1.0.4","_npmVersion":"6.4.1","_nodeVersion":"11.8.0","_npmUser":{"name":"boneskull","email":"boneskull@boneskull.com"},"dist":{"shasum":"0b784a6551426bfc16d3b2208424dcbc2b2ff038","size":3063,"noattachment":false,"key":"/node-environment-flags/-/node-environment-flags-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-environment-flags/download/node-environment-flags-1.0.4.tgz"},"maintainers":[{"name":"boneskull","email":"boneskull@boneskull.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-environment-flags_1.0.4_1548790346419_0.5742309337419593"},"_hasShrinkwrap":false,"publish_time":1548790346539,"_cnpm_publish_time":1548790346539},"1.0.3":{"name":"node-environment-flags","version":"1.0.3","description":"> Polyfill/shim for `process.allowedNodeEnvironmentFlags`","main":"index.js","scripts":{"test":"mocha","format":"prettier-eslint --write \"*.js\" \"*.json\" \"test/**/*.js\"","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once"},"keywords":[],"author":{"name":"Christopher Hiller","email":"boneskull@boneskull.com","url":"https://boneskull.com/"},"license":"Apache-2.0","devDependencies":{"eslint":"^5.9.0","eslint-config-prettier":"^3.3.0","eslint-config-semistandard":"^13.0.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.14.0","eslint-plugin-node":"^8.0.0","eslint-plugin-prettier":"^3.0.0","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","husky":"^1.1.3","lint-staged":"^8.0.4","mocha":"^5.2.0","nyc":"^13.1.0","prettier-eslint-cli":"^4.7.1","semantic-release":"^15.11.0","travis-deploy-once":"^5.0.9","unexpected":"^10.39.1"},"dependencies":{"object.getownpropertydescriptors":"^2.0.3"},"lint-staged":{"*.{js,json}":["prettier-eslint --write","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"prettier":{"singleQuote":true,"bracketSpacing":false},"repository":{"type":"git","url":"git+https://github.com/boneskull/node-environment-flags.git"},"gitHead":"456803dbb655e526fca6adfec12e4d53f6eafa73","bugs":{"url":"https://github.com/boneskull/node-environment-flags/issues"},"homepage":"https://github.com/boneskull/node-environment-flags#readme","_id":"node-environment-flags@1.0.3","_npmVersion":"6.4.1","_nodeVersion":"11.8.0","_npmUser":{"name":"boneskull","email":"boneskull@boneskull.com"},"dist":{"shasum":"0c04c65aa0a234f34e725bdd5b9cb8d327dd68be","size":3046,"noattachment":false,"key":"/node-environment-flags/-/node-environment-flags-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-environment-flags/download/node-environment-flags-1.0.3.tgz"},"maintainers":[{"name":"boneskull","email":"boneskull@boneskull.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-environment-flags_1.0.3_1548708317013_0.0486964680901667"},"_hasShrinkwrap":false,"publish_time":1548708317100,"_cnpm_publish_time":1548708317100},"1.0.2":{"name":"node-environment-flags","version":"1.0.2","description":"> Polyfill/shim for `process.allowedNodeEnvironmentFlags`","main":"index.js","scripts":{"test":"mocha","format":"prettier-eslint --write \"*.js\" \"*.json\" \"test/**/*.js\"","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once"},"keywords":[],"author":{"name":"Christopher Hiller","email":"boneskull@boneskull.com","url":"https://boneskull.com/"},"license":"Apache-2.0","devDependencies":{"eslint":"^5.9.0","eslint-config-prettier":"^3.3.0","eslint-config-semistandard":"^13.0.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.14.0","eslint-plugin-node":"^8.0.0","eslint-plugin-prettier":"^3.0.0","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","husky":"^1.1.3","lint-staged":"^8.0.4","mocha":"^5.2.0","nyc":"^13.1.0","prettier-eslint-cli":"^4.7.1","semantic-release":"^15.11.0","travis-deploy-once":"^5.0.9","unexpected":"^10.39.1"},"dependencies":{"object.getownpropertydescriptors":"^2.0.3"},"lint-staged":{"*.{js,json}":["prettier-eslint --write","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"prettier":{"singleQuote":true,"bracketSpacing":false},"repository":{"type":"git","url":"git+https://github.com/boneskull/node-environment-flags.git"},"gitHead":"c805c11dcf72ce91ccc44109459129f4e565fb9a","bugs":{"url":"https://github.com/boneskull/node-environment-flags/issues"},"homepage":"https://github.com/boneskull/node-environment-flags#readme","_id":"node-environment-flags@1.0.2","_npmVersion":"6.4.1","_nodeVersion":"11.2.0","_npmUser":{"name":"boneskull","email":"boneskull@boneskull.com"},"dist":{"shasum":"e6291d9365d49cee851810ae89407d9f96cda286","size":3041,"noattachment":false,"key":"/node-environment-flags/-/node-environment-flags-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-environment-flags/download/node-environment-flags-1.0.2.tgz"},"maintainers":[{"name":"boneskull","email":"boneskull@boneskull.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-environment-flags_1.0.2_1542752041682_0.2513042789920876"},"_hasShrinkwrap":false,"publish_time":1542752041841,"_cnpm_publish_time":1542752041841},"1.0.1":{"name":"node-environment-flags","version":"1.0.1","description":"> Polyfill/shim for `process.allowedNodeEnvironmentFlags`","main":"index.js","scripts":{"test":"mocha","format":"prettier-eslint --write \"*.js\" \"*.json\" \"test/**/*.js\"","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once"},"keywords":[],"author":{"name":"Christopher Hiller","email":"boneskull@boneskull.com","url":"https://boneskull.com/"},"license":"Apache-2.0","devDependencies":{"eslint":"^5.9.0","eslint-config-prettier":"^3.3.0","eslint-config-semistandard":"^13.0.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.14.0","eslint-plugin-node":"^8.0.0","eslint-plugin-prettier":"^3.0.0","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","husky":"^1.1.3","lint-staged":"^8.0.4","mocha":"^5.2.0","nyc":"^13.1.0","prettier-eslint-cli":"^4.7.1","semantic-release":"^15.11.0","travis-deploy-once":"^5.0.9","unexpected":"^10.39.1"},"dependencies":{"object.getownpropertydescriptors":"^2.0.3"},"lint-staged":{"*.{js,json}":["prettier-eslint --write","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"prettier":{"singleQuote":true,"bracketSpacing":false},"repository":{"type":"git","url":"git+https://github.com/boneskull/node-environment-flags.git"},"gitHead":"18e81b1b0a2e9a38d28fd635bbd0b41095c92382","bugs":{"url":"https://github.com/boneskull/node-environment-flags/issues"},"homepage":"https://github.com/boneskull/node-environment-flags#readme","_id":"node-environment-flags@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"boneskull","email":"boneskull@boneskull.com"},"dist":{"shasum":"f9fb0fefe9913ff8f213e43e2e35f0eee55c2d4e","size":3050,"noattachment":false,"key":"/node-environment-flags/-/node-environment-flags-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-environment-flags/download/node-environment-flags-1.0.1.tgz"},"maintainers":[{"name":"boneskull","email":"boneskull@boneskull.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-environment-flags_1.0.1_1542173308764_0.2850622224020334"},"_hasShrinkwrap":false,"publish_time":1542173308922,"_cnpm_publish_time":1542173308922},"1.0.0":{"name":"node-environment-flags","version":"1.0.0","description":"> Polyfill/shim for `process.allowedNodeEnvironmentFlags`","main":"index.js","scripts":{"test":"mocha","format":"prettier-eslint --write \"*.js\" \"*.json\" \"test/**/*.js\"","semantic-release":"semantic-release","travis-deploy-once":"travis-deploy-once"},"keywords":[],"author":{"name":"Christopher Hiller","email":"boneskull@boneskull.com","url":"https://boneskull.com/"},"license":"Apache-2.0","devDependencies":{"eslint":"^5.9.0","eslint-config-prettier":"^3.3.0","eslint-config-semistandard":"^13.0.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.14.0","eslint-plugin-node":"^8.0.0","eslint-plugin-prettier":"^3.0.0","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","husky":"^1.1.3","lint-staged":"^8.0.4","mocha":"^5.2.0","nyc":"^13.1.0","prettier-eslint-cli":"^4.7.1","semantic-release":"^15.11.0","travis-deploy-once":"^5.0.9","unexpected":"^10.39.1"},"dependencies":{"object.getownpropertydescriptors":"^2.0.3"},"lint-staged":{"*.{js,json}":["prettier-eslint --write","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"prettier":{"singleQuote":true,"bracketSpacing":false},"repository":{"type":"git","url":"git+https://github.com/boneskull/node-environment-flags.git"},"gitHead":"96f0bef01dfbf1f3f85fd34dc295305098345d3c","bugs":{"url":"https://github.com/boneskull/node-environment-flags/issues"},"homepage":"https://github.com/boneskull/node-environment-flags#readme","_id":"node-environment-flags@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"boneskull","email":"boneskull@boneskull.com"},"dist":{"shasum":"f323405b50a355213b074a7ec2b249a2fbbd7abc","size":3039,"noattachment":false,"key":"/node-environment-flags/-/node-environment-flags-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-environment-flags/download/node-environment-flags-1.0.0.tgz"},"maintainers":[{"name":"boneskull","email":"boneskull@boneskull.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-environment-flags_1.0.0_1542068988680_0.3139921769292875"},"_hasShrinkwrap":false,"publish_time":1542068988902,"_cnpm_publish_time":1542068988902}},"readme":"# node-environment-flags\n\n> Polyfill/shim for `process.allowedNodeEnvironmentFlags`\n\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\n**node-environment-flags** is a *rough* polyfill and shim for [process.allowedNodeEnvironmentFlags](https://nodejs.org/api/process.html#process_process_allowednodeenvironmentflags), which was introduced in Node.js v10.10.0.\n\n## Table of Contents\n\n- [Install](#install)\n- [Usage](#usage)\n- [Maintainers](#maintainers)\n- [Contribute](#contribute)\n- [License](#license)\n\n## Install\n\n*Requires Node.js v6.0.0 or newer.*\n\n```shell\n$ npm i node-environment-flags\n```\n\n## Usage\n\nIf the current Node.js version is v10.10.0 or newer, the native implementation will be provided instead.\n\n### As Polyfill (Recommended)\n\n```js\nconst nodeEnvironmentFlags = require('node-environment-flags');\n\nnodeEnvironmentFlags.has('--require'); // true\n```\n\n### As Shim\n\n```js\nrequire('node-environment-flags/shim')();\n\nprocess.allowedNodeEnvironmentFlags.has('--require'); // true\n```\n\n## Notes\n\n- This module approximates what `process.allowedNodeEnvironmentFlags` provides in versions of Node.js prior to v10.10.0.  Since `process.allowedNodeEnvironmentFlags` is based on [`NODE_OPTIONS`](https://nodejs.org/api/cli.html#cli_node_options_options) (introduced in v8.0.0), the set of supported flags for versions older than v8.0.0 is *highly theoretical*.\n- Version ranges are matched using [semver](https://npm.im/semver).\n- This module is granular to the *minor* Node.js version number; *patch* version numbers are not considered.\n- Results for unmaintained (odd) versions of Node.js are based on data for the most recent LTS version; e.g., running this module against Node.js v7.10.0 will yield the same results as would v6.14.0.\n- Prior art: @ljharb's [util.promisify](https://npm.im/util.promisify)\n\n## Maintainers\n\n[@boneskull](https://github.com/boneskull)\n\n## License\n\nCopyright © 2018 Christopher Hiller.  Licensed Apache-2.0.\n","_attachments":{},"homepage":"https://github.com/boneskull/node-environment-flags#readme","bugs":{"url":"https://github.com/boneskull/node-environment-flags/issues"},"license":"Apache-2.0"}