
Security News
n8n Tops 2025 JavaScript Rising Stars as Workflow Platforms Gain Momentum
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.
A wrapper for node’s built-in util.parseArgs with helpful features added.
#!/usr/bin/env node
import pargs from 'pargs';
const {
help,
positionals,
values,
errors, // a mutable string array; push to it and pargs will include your error messages.
name, // if subcommands are used
tokens,
} = await pargs(import.meta.filename, options);
// do extra validation here
await help(); // to handle `--help` and print the help text if needed, or to print errors and exit
Help text is automatically read from a help.txt file adjacent to import.meta.filename.
await an invocation of the help function returned from the pargs call to handle --help and print the help text if needed, or to print errors and exit.
See the node.js parseArgs documentation for some context.
strict: can not be set to false - strictness all the way.allowNegative: can not be set to false.args: can not provide; pargs always uses process.cwd() - this may be added in the future, though.options.type: in addition to 'boolean' and 'string', 'enum': when provided, a choices string array is also required.allowPositionals: in addition to a boolean, or an integer representing the maximum number of allowed positional arguments.minPositionals: an integer representing the minimum required number of positional arguments.subcommands: if provided, must be an object. Keys are the subcommand names (eg, in npm ls, ls is the subcommand), and values are the configuration options for each subcommand - as if they were a top-level invocation.``
npm install --save pargs
MIT
Thanks to @ibakaidov for donating the pargs package name!
FAQs
A useful wrapper for `util.parseArgs`
The npm package pargs receives a total of 23,526 weekly downloads. As such, pargs popularity was classified as popular.
We found that pargs 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
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.

Security News
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.