0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

doc: update process.versions.modules documentation

This commit adds a description of `process.versions.modules`,
based on the comment in `src/node_version.h` lines 47-50.

PR-URL: https://github.com/nodejs/node/pull/9901
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
Kevin Zurawel 2016-12-01 10:12:46 -06:00 committed by Rich Trott
parent 4bdf494d63
commit f368eee19f

View File

@ -1651,7 +1651,9 @@ added: v0.2.0
* {Object}
The `process.versions` property returns an object listing the version strings of
Node.js and its dependencies.
Node.js and its dependencies. In addition, `process.versions.modules` indicates
the current ABI version, which is increased whenever a C++ API changes. Node.js
will refuse to load native modules built for an older `modules` value.
```js
console.log(process.versions);