@cjser/builtin-modules
v5.2.0-cjser.2
Published
A static list of the Node.js builtin modules from the latest Node.js version
Maintainers
Readme
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-modulesUsage
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';Related
- is-builtin-module - Check if a string matches the name of a Node.js builtin module
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/builtin-modules
