Skip to content

Instantly share code, notes, and snippets.

@imtrinity94
Created March 15, 2022 09:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imtrinity94/2aaec6958f00a375492a887fca65a6d8 to your computer and use it in GitHub Desktop.
Save imtrinity94/2aaec6958f00a375492a887fca65a6d8 to your computer and use it in GitHub Desktop.
List of available Node.js modules in vRO
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"
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment