
Product
Introducing the Alert Details Page: A Better Way to Explore Alerts
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.
@node-loader/core
Advanced tools
A configurable NodeJS loader that combines multiple other loaders into one.
NodeJS Loaders are a new feature that allow you to configure the behavior of modules loaded with import or import(). NodeJS currently only allows you to specify a single loader when starting up Node. However, the @node-loader/core project allows you to combine multiple into a single loader through a configuration file.
npm install --save @node-loader/core
# Or, if you prefer yarn
yarn add @node-loader/core
Create a file node-loader.config.js in your current working directory:
import * as importMapLoader from "@node-loader/import-maps";
import * as httpLoader from "@node-loader/http";
export default {
loaders: [importMapLoader, httpLoader],
};
Then run node with the --experimental-loader flag:
node --experimental-loader @node-loader/core file.js
Your code will now run with all loaders specified in the configuration file, merged into a single loader. When multiple loaders specify the same loader hook (such as resolve), they will be called sequentially until one of them returns a non-default value. The order in which they are called is the same order specified in the configuration file.
The path to your node-loader.config.js file may be configured with the NODE_LOADER_CONFIG environment variable:
IMPORT_MAP_PATH=/Users/name/some/dir/node.importmap node --experimental-loader @node-loader/core file.js
Within the file, only the loaders property is currently respected. In the future, additional configuration options may be defined.
FAQs
The base loader for configuring NodeJS loaders
The npm package @node-loader/core receives a total of 88 weekly downloads. As such, @node-loader/core popularity was classified as not popular.
We found that @node-loader/core 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.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.