process.release
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
: a string with a value that will always be'node'
for Node.js. For legacy io.js releases, this will be'io.js'
. -
sourceUrl
: a complete URL pointing to a .tar.gz file containing the source of the current release. -
headersUrl
: a complete URL pointing to a .tar.gz file containing only the header files for the current release. This file is significantly smaller than the full source file and can be used for compiling add-ons against Node.js. -
libUrl
: a complete URL pointing to an node.lib file matching the architecture and version of the current release. This file is used for compiling add-ons against Node.js. This property is only present on Windows builds of Node.js and will be missing on all other platforms.
e.g.
{ name: 'node', sourceUrl: 'https://nodejs.org/download/release/v4.0.0/node-v4.0.0.tar.gz', headersUrl: 'https://nodejs.org/download/release/v4.0.0/node-v4.0.0-headers.tar.gz', libUrl: 'https://nodejs.org/download/release/v4.0.0/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.
Please login to continue.