Rasi
answered Nov 30 '-1 00:00
process.binding('natives') give you all the builtin module object list , and each module name is key for that object .
console.log(Object.keys(process.binding('natives')).sort());
give all key of the module object list.
lets store it to json file
var fs = require("fs");
var builtinModules=Object.keys(process.binding('natives')).sort();
fs.writeFileSync('builtin-modules-list.json', JSON.stringify(builtinModules, null, '\t') + '\n');
it will save builtin-modules-list.json file with all builtin modules in json format