mirror of
https://github.com/nejimakibird/model-weave.git
synced 2026-07-22 06:51:24 +00:00
| .. | ||
| builtin-modules.json | ||
| index.d.ts | ||
| index.js | ||
| license | ||
| package.json | ||
| readme.md | ||
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);
//=> ['assert', 'buffer', …]
Tip
To get a list from the current Node.js version, use the built-in API:
import {builtinModules} from 'node:module';
Related
- is-builtin-module - Check if a string matches the name of a Node.js builtin module