
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@flex-development/is-builtin
Advanced tools
Universal drop-in replacement for module.isBuiltin
This package is a universal drop-in replacement for module.isBuiltin.
This package exports a single function that can be used to determine if a module is a builtin module. Builtin
modules are core modules maintained by Node.js. They can be imported by name or using a node: URL.
This package is ESM only.
In Node.js (version 18+) with yarn:
yarn add @flex-development/is-builtin
See Git - Protocols | Yarn  for details regarding installing from Git.
In Deno with esm.sh:
import { isBuiltin } from 'https://esm.sh/@flex-development/is-builtin'
In browsers with esm.sh:
<script type="module">
import { isBuiltin } from 'https://esm.sh/@flex-development/is-builtin'
</script>
import { isBuiltin } from '@flex-development/is-builtin'
isBuiltin('@flex-development/is-builtin') // false
isBuiltin('assert') // true
isBuiltin('fs/promises') // true
isBuiltin(new URL('node:os')) // true
isBuiltin('node:module') // true
isBuiltin('node:test/reporters') // true
isBuiltin('test') // false
isBuiltin(null) // false
This package exports the identifier isBuiltin.
The default export is also isBuiltin.
isBuiltin(m)Check if m references a builtin module.
👉 Note:
mwill be converted to a string (String(m)) before being checked.
m (unknown) — the thing to checktrue if m references builtin module, false otherwise.
This package is fully typed with TypeScript.
builtin-modules
— Universal drop-in replacement for module.builtinModulesSee CONTRIBUTING.md.
This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.
FAQs
Universal drop-in replacement for module.isBuiltin
The npm package @flex-development/is-builtin receives a total of 368 weekly downloads. As such, @flex-development/is-builtin popularity was classified as not popular.
We found that @flex-development/is-builtin demonstrated a not healthy version release cadence and project activity because the last version was released 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.