parse-node-version

WebJar for parse-node-version

Лицензия

Лицензия

MIT
Группа

Группа

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

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

parse-node-version
Последняя версия

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

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

parse-node-version
WebJar for parse-node-version
Ссылка на сайт

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

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

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

https://github.com/gulpjs/parse-node-version

Скачать parse-node-version

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

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

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

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

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

parse-node-version

NPM version Downloads Travis Build Status AppVeyor Build Status Coveralls Status Gitter chat

Turn node's process.version into something useful.

Usage

var nodeVersion = require('parse-node-version')(process.version);

console.log(
  nodeVersion.major,
  nodeVersion.minor,
  nodeVersion.patch,
  nodeVersion.pre,
  nodeVersion.build
);

API

parseVersion(nodeVersionString)

Takes a node version string (usually process.version) and returns an object with the major/minor/patch (which will all be numbers) and pre/build keys (which will always be a string). If the version doesn't contain any pre-release or build information, the properties will be returned as empty string.

License

MIT

org.webjars.npm

gulp

A toolkit to automate & enhance your workflow

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

Версия
1.0.1
1.0.0