
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
is-bun-module
Advanced tools
A utility library to check if a module is a Bun built-in module or a Node.js module implemented in Bun.
isBunModule(moduleName, bunVersion?)
Checks if a specifier is a Bun module.
import { isBunModule } from "is-bun-module";
isBunModule("bun"); // true
isBunModule("bun:test", "1.0.0"); // true
isBunModule("notBunModule"); // false
isBunImplementedNodeModule(moduleName, bunVersion?)
Checks if a specifier is a Node module implemented in Bun.
import { isBunImplementedNodeModule } from "is-bun-module";
isBunImplementedNodeModule("fs"); // true
isBunImplementedNodeModule("node:fs"); // true
isBunImplementedNodeModule("node:notNodeModule"); // false
isBunImplementedNodeModule("node:http2", "1.0.0"); // false, added in 1.0.13
isBunBuiltin(moduleName, bunVersion?)
Checks if a specifier is either a Bun module or a Node.js module implemented in Bun.
import { isBunBuiltin } from "is-bun-module";
isBunBuiltin("bun"); // true
isBunBuiltin("fs"); // true
isBunBuiltin("notBunModule"); // false
getBunModules(bunVersion?)
Returns an array of all Bun modules available in the specified version.
import { getBunModules } from "is-bun-module";
getBunModules(); // ["bun", "bun:ffi", ...]
getBunModules("1.0.0"); // Returns modules available in version 1.0.0
getBunImplementedNodeModules(bunVersion?)
Returns an array of all Node.js modules implemented in Bun for the specified version.
import { getBunImplementedNodeModules } from "is-bun-module";
getBunImplementedNodeModules(); // ["fs", "path", ...]
getBunImplementedNodeModules("1.0.0"); // Returns implemented Node.js modules in version 1.0.0
getBunBuiltinModules(bunVersion?)
Returns an array of all builtin modules (both Bun modules and implemented Node.js modules).
import { getBunBuiltinModules } from "is-bun-module";
getBunBuiltinModules(); // ["bun", "bun:ffi", "fs", "path", ...]
latest
as Bun versionFAQs
Is this specifier a Bun core module or supported Node one?
The npm package is-bun-module receives a total of 7,146,218 weekly downloads. As such, is-bun-module popularity was classified as popular.
We found that is-bun-module 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.