node-environment-flags

WebJar for node-environment-flags

Лицензия

Лицензия

Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

node-environment-flags
Последняя версия

Последняя версия

1.0.6
Дата

Дата

Тип

Тип

jar
Описание

Описание

node-environment-flags
WebJar for node-environment-flags
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

https://github.com/boneskull/node-environment-flags

Скачать node-environment-flags

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/node-environment-flags/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>node-environment-flags</artifactId>
    <version>1.0.6</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/node-environment-flags/
implementation 'org.webjars.npm:node-environment-flags:1.0.6'
// https://jarcasting.com/artifacts/org.webjars.npm/node-environment-flags/
implementation ("org.webjars.npm:node-environment-flags:1.0.6")
'org.webjars.npm:node-environment-flags:jar:1.0.6'
<dependency org="org.webjars.npm" name="node-environment-flags" rev="1.0.6">
  <artifact name="node-environment-flags" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='node-environment-flags', version='1.0.6')
)
libraryDependencies += "org.webjars.npm" % "node-environment-flags" % "1.0.6"
[org.webjars.npm/node-environment-flags "1.0.6"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.npm : object.getownpropertydescriptors jar [2.0.3,3)
org.webjars.npm : semver jar [5.7.0,6)

Модули Проекта

Данный проект не имеет модулей.

node-environment-flags

Polyfill/shim for process.allowedNodeEnvironmentFlags

semantic-release

node-environment-flags is a rough polyfill and shim for process.allowedNodeEnvironmentFlags, which was introduced in Node.js v10.10.0.

Table of Contents

Install

Requires Node.js v6.0.0 or newer.

$ npm i node-environment-flags

Usage

If the current Node.js version is v10.10.0 or newer, the native implementation will be provided instead.

As Polyfill (Recommended)

const nodeEnvironmentFlags = require('node-environment-flags');

nodeEnvironmentFlags.has('--require'); // true

As Shim

require('node-environment-flags/shim')();

process.allowedNodeEnvironmentFlags.has('--require'); // true

Notes

  • 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 (introduced in v8.0.0), the set of supported flags for versions older than v8.0.0 is highly theoretical.
  • Version ranges are matched using semver.
  • This module is granular to the minor Node.js version number; patch version numbers are not considered.
  • 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.
  • Prior art: @ljharb's util.promisify

Maintainers

@boneskull

License

Copyright © 2018 Christopher Hiller. Licensed Apache-2.0.

Версии библиотеки

Версия
1.0.6