
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
esbuild-node-prefix-plugin
Advanced tools
Plugin for decorating inbuilt Node modules with a 'node:' prefix.
esbuild-node-prefix-pluginA plugin for esbuild to change imports to inbuilt Node.js modules such as "path" to be prefixed with node:, e.g., "node:path". This can be handy when building for modern platforms.
Install the plugin:
npm i esbuild-node-prefix-plugin --save-dev
Now in your esbuild configuration file you can do:
const { build } = require('esbuild');
const { nodePrefixPlugin } = require('esbuild-node-prefix-plugin');
build({
// ...
plugins: [nodePrefixPlugin()],
});
Full configuration example:
const { build } = require("esbuild");
const { nodePrefixPlugin } = require('esbuild-node-prefix-plugin');
build({
outdir: "dist",
bundle: true,
platform: "node",
format: "esm",
entryPoints: ["src/index.ts"],
logLevel: "info",
plugins: [nodePrefixPlugin()],
});
This plugin is released using the MIT license. For more information see the LICENSE file.
FAQs
Plugin for decorating inbuilt Node modules with a 'node:' prefix.
The npm package esbuild-node-prefix-plugin receives a total of 30 weekly downloads. As such, esbuild-node-prefix-plugin popularity was classified as not popular.
We found that esbuild-node-prefix-plugin 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.