Created
March 15, 2022 09:41
-
-
Save imtrinity94/2aaec6958f00a375492a887fca65a6d8 to your computer and use it in GitHub Desktop.
List of available Node.js modules in vRO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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