Socket
Socket
Sign inDemoInstall

builtin-modules-static

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

builtin-modules-static

Static lists of Node.js's builtin modules for various versions.


Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

builtin-modules-static

sindresorhus/builtin-modules, but completely static.

Installation

npm i builtin-modules-static
pnpm add builtin-modules-static
yarn add builtin-modules-static
bun add builtin-modules-static

Usage

// ESM
import all from 'builtin-modules-static';
// CJS
const all = require('builtin-modules-static');

all.v20.includes('fs/promises'); // true
//  ^^^ The list of modules for Node.js v20.
all.v10.includes('fs/promises'); // false
//  ^^^ The list of modules for Node.js v10.

Alternatively, you can import just the modules for a specific version.

// ESM
import { v18 } from 'builtin-modules-static';
// CJS
const { v18 } = require('builtin-modules-static');

v18.includes('path'); // true
v18.includes('zimplogulon'); // false

License

MIT

FAQs

Package last updated on 13 Jan 2024

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