
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@kamidere/node-args
Advanced tools
Fork of christiansandor/args
The most minimalistic parameter processor for node. Really.
Couldn't be simpler, just install it like:
npm install @kamidere/node-args
And use it as:
const { getArgs } = require('@kamidere/node-args');
const args = getArgs(process.argv);
const anyString = "-a --test nope";
const argsFromString = getArgs(anyString.split(' '));
-ab = -a -b)my.js
const { getArgs } = require('@kamidere/node-args');
console.log(getArgs(process.argv));
node my.js -t -ab=2 -c false -p no some additional data 2 --argsis awesome --another=1
So you will get:
{
additional: ['node', 'node file path', 'some', 'additional', 'data', 2],
t: true,
a: 2,
b: 2,
c: false,
p: 'no',
argsis: 'awesome',
another: 1
};
Yay.
Side note: It's build upon TypeScript and tested thoroughly.
The source files are in the src folder, and the available scripts are
npm run build:src to build without testsnpm run build:tests to build with testsnpm test to run testsPlease do contribute if you find a better, faster or easier way to process arguments.
FAQs
Most minimalistic parameter processor for node.
We found that @kamidere/node-args 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.