
Product
Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
module-igniter
Advanced tools
Automatic call nodejs module, originally created for load rollup-plugins.
npm i module-igniter
yarn add module-igniter
const igniter = require("module-igniter");
const plug = igniter({ prefix: "rollup-plugin-" });
plug("commonjs", "node-resolve");
// or plug(['commonjs', 'node-resolve'])
// result [require('rollup-plugin-commonjs')(), require('rollup-plugin-node-resolve')()]
const igniter = require("module-igniter");
const plug = igniter({prefix: 'rollup-plugin-'})
// single array argument
plug({ foo: [["hello"]] });
// result [require('foo')(['hello])]
plug({replace: {'process.env.NODE_ENV': JSON.stringify(environment)})
// result [require('rollup-plugin-replace')({'process.env.NODE_ENV': JSON.stringify(environment)})]
const igniter = require("module-igniter");
const plug = igniter();
// single array argument
plug({ foo: [["hello"], { bar: "baz" }] });
// result [require('foo')(['hello], {bar: 'baz'})]
const igniter = require('module-igniter')
const plug = igniter({prefix: 'rollup-plugin-'})
plug({replace: {'process.env.NODE_ENV': JSON.stringify(environment)}, false)
// result []
const igniter = require("module-igniter");
const plug = igniter({ classic: true });
plug({
"html-webpack-plugin": {
filename: "assets/admin.html"
}
});
// result [new require('html-webpack-plugin')({filename: 'assets/admin.html'})]
See here for real usage example
MIT
FAQs
Node module loader and executor.
The npm package module-igniter receives a total of 0 weekly downloads. As such, module-igniter popularity was classified as not popular.
We found that module-igniter 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 Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.