tree: c84b21fd9a6ebc2af613994a3217c38692075726 [path history] [tgz]
  1. builtin-modules.json
  2. index.d.ts
  3. index.js
  4. license
  5. package.json
  6. readme.md
  7. static.d.ts
  8. static.js
node_modules/builtin-modules/readme.md

builtin-modules

List of the Node.js builtin modules

The list is just a JSON file and can be used anywhere.

Install

$ npm install builtin-modules

Usage

const builtinModules = require('builtin-modules');

console.log(builtinModules);
//=> ['assert', 'buffer', ...]

API

Returns an array of builtin modules fetched from the running Node.js version.

Static list

This module also comes bundled with a static array of builtin modules generated from the latest Node.js version. You can get it with require('builtin-modules/static');

Related