![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
The 'builtins' npm package provides a list of Node.js built-in modules. It is useful for tools and libraries that need to know which modules are built into Node.js.
List all built-in modules
This feature allows you to retrieve a list of all built-in modules in Node.js. The code sample demonstrates how to use the 'builtins' package to log the list of built-in modules to the console.
const builtins = require('builtins');
console.log(builtins());
List built-in modules for a specific Node.js version
This feature allows you to retrieve a list of built-in modules for a specific version of Node.js. The code sample demonstrates how to use the 'builtins' package to log the list of built-in modules for Node.js version 10.0.0 to the console.
const builtins = require('builtins');
console.log(builtins('10.0.0'));
The 'node-builtins' package provides a list of Node.js built-in modules similar to 'builtins'. It is also used to identify built-in modules in Node.js, but it may have different methods or additional features.
The 'builtin-modules' package offers a list of Node.js built-in modules. It is similar to 'builtins' but may have a different API or additional functionalities. It is often used in bundlers and other tools that need to handle Node.js built-ins.
List of node.js builtin modules.
const builtins = require('builtins')
Get list of core modules for current Node.js version:
assert(builtins().includes('http'))
Get list of core modules for specific Node.js version:
assert(builtins({ version: '6.0.0' }).includes('http'))
Get list of core modules present in one or mode Node.js versions:
assert(builtins({ version: '*' }).includes('worker_threads'))
Add experimental modules to the list:
assert(builtins({ experimental: true }).includes('wasi'))
MIT
FAQs
List of node.js builtin modules
The npm package builtins receives a total of 1,875,236 weekly downloads. As such, builtins popularity was classified as popular.
We found that builtins demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.