gareth asked this 4 years ago

Get a list of core Node.js modules

How can i get a complete list of all built-in modules available with my Node.js installation?

Best Answer by noddy 4 years ago

Run the command on REPL

> require('repl')._builtinLibs

gareth 4 years ago
1 like

Yes thanks!

$ node -pe "require('repl')._builtinLibs"
[ 'assert',
  'zlib' ]

That gives a list of core node.js modules on my installation.