elearning/Frontend-Learner/node_modules/builtin-modules
2026-01-13 10:48:02 +07:00
..
builtin-modules.json Website Structure 2026-01-13 10:48:02 +07:00
index.d.ts Website Structure 2026-01-13 10:48:02 +07:00
index.js Website Structure 2026-01-13 10:48:02 +07:00
license Website Structure 2026-01-13 10:48:02 +07:00
package.json Website Structure 2026-01-13 10:48:02 +07:00
readme.md Website Structure 2026-01-13 10:48:02 +07:00

builtin-modules

A static list of the Node.js builtin modules from the latest Node.js version

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

Install

npm install builtin-modules

Usage

import builtinModules from 'builtin-modules';

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

Tip

To get a list from the current Node.js version, use the built-in API:

import {builtinModules} from 'node:module';