Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

builtin-modules

sindresorhus42.6mMIT4.0.0TypeScript support: included

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

builtin, built-in, builtins, node, modules, core, bundled, list, array, names

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-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';