List of available Node.js modules in vRO

Here is the list of node.js modules that comes preinstalled in vRO 8.3 when you select in Node.js 12 in Runtime.

ModuleVersion
node12.18.3
v87.8.279.23-node.39
uv1.38.0
zlib1.2.11
brotli1.0.7
ares1.16.0
modules72
nghttp21.41.0
napi6
llhttp2.0.4
http_parser2.9.3
openssl1.1.1g
cldr37.0
icu67.1
tz2019c
unicode13.0
Note: http_parser is removed from later versions of vRO Node.js Runtime

Reference Script

In Node.js, the process.versions property is an inbuilt application programming interface of the process module which is used to get the versions of node.js modules and it’s dependencies. The process.versions property returns an object listing the version strings of Node.js and its dependencies.

exports.handler = (context, inputs, callback) => {
const process = require('process');
var no_versions = 0;
var versions = process.versions;
console.log("|Module|Version|");
console.log("|——|——-|");
for (var key in versions) {
// Printing key and its versions
console.log("|"+key + "|" + versions[key]+"|");
no_versions++;
}
console.log("Total no of values available = " + no_versions);
callback(undefined, {
status: "done"
});
}

Let me know if you have an even better way to get the list of modules from vRO. See you.

One Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s