The process.release
property returns an Object containing metadata related to
the current release, including URLs for the source tarball and headers-only
tarball.
process.release
contains the following properties:
name
{string} A value that will always be'node'
for Node.js. For legacy io.js releases, this will be'io.js'
.sourceUrl
{string} an absolute URL pointing to a.tar.gz
file containing the source code of the current release.headersUrl
{string} an absolute URL pointing to a.tar.gz
file containing only the source header files for the current release. This file is significantly smaller than the full source file and can be used for compiling Node.js native add-ons.libUrl
{string} an absolute URL pointing to anode.lib
file matching the architecture and version of the current release. This file is used for compiling Node.js native add-ons. This property is only present on Windows builds of Node.js and will be missing on all other platforms.lts
{string} a string label identifying the [LTS][] label for this release. If the Node.js release is not an LTS release, this will beundefined
.
For example:
{
name: 'node',
lts: 'Argon',
sourceUrl: 'https://nodejs.org/download/release/v4.4.5/node-v4.4.5.tar.gz',
headersUrl: 'https://nodejs.org/download/release/v4.4.5/node-v4.4.5-headers.tar.gz',
libUrl: 'https://nodejs.org/download/release/v4.4.5/win-x64/node.lib'
}
In custom builds from non-release versions of the source tree, only the
name
property may be present. The additional properties should not be
relied upon to exist.