builtin-modules
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|
Builtin-modules is a useful Node.js package that provides a list of Node.js built-in modules. These are the modules that come bundled with Node.js by default. The list of built-in modules, presented as a JSON file, is collected from the running Node.js version. This package effectively allows developers to access and interact with system-level functions and objects provided by Node.js.
Builtin-modules is incredibly straightforward and easy to install and use. To install it, simply use npm—the default package manager for Node.js—by running the following command:
$ npm install builtin-modules
Once you've installed the package, you can access the list of built-in Node.js modules in your code as follows:
const builtinModules = require('builtin-modules');
console.log(builtinModules);
// Expected output: ['assert', 'buffer', ...]
Additionally, the package includes a static list of built-in modules bundled from the latest Node.js version, which can be accessed using:
require('builtin-modules/static');
Using the node package 'builtin-modules' is as easy as these steps.
The Builtin-modules package doesn't have standalone documentation outside of the readme file on the package's GitHub page. This readme file provides all the essential information you need to install and use the package. You can refer to this file for a complete guide on how to incorporate builtin-modules into your Node.js projects.