Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

builtin-modules

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

builtin-modules

List of the Node.js builtin modules

  • 3.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16M
increased by20.45%
Maintainers
1
Weekly downloads
 
Created

What is builtin-modules?

The builtin-modules package provides a list of the modules that come pre-packaged with Node.js. These are modules that you can require in your code without needing to install them separately, as they are built into the Node.js runtime. This package is useful for developers who want to ensure they are using only core modules or need to check if a module name corresponds to a built-in module.

What are builtin-modules's main functionalities?

List of all builtin modules

This feature allows you to retrieve an array of all the builtin module names in Node.js. The code sample shows how to require the package and log the list of module names to the console.

const builtinModules = require('builtin-modules');
console.log(builtinModules);

List of builtin modules as of a specific Node.js version

This feature provides a list of builtin modules for a specific version of Node.js. The 'static' import gives you a list that corresponds to a particular Node.js release, which is useful when working with environments that may not be up-to-date with the latest Node.js version.

const builtinModules = require('builtin-modules/static');
console.log(builtinModules);

Other packages similar to builtin-modules

Keywords

FAQs

Package last updated on 22 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc