parse-node-version

WebJar for parse-node-version

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

parse-node-version
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

parse-node-version
WebJar for parse-node-version
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download parse-node-version

How to add to project

<!-- 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"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.0.1
1.0.0