yargs-parser 22.x
Use yargs-parser v22 as a standalone ESM-first argument parser, including its callable parser, detailed results, helper methods, and documented parsing options.
- For
yargs-parser@22.0.0- Verified
- 2026-09-08, 8 examples executed
- Package
@modootoday/pmcp-yargs-parser@22.0.0
What it covers
- Import and runtime
- Basic parsing
- Typed and repeated options
- Detailed parsing
- Helper exports
- Environment and configuration-related options
- `--` values and configuration
- What this skill does not cover
One example from this skill
This is the skill's own text, not a summary of it. It runs: that is what verifying means here.
import assert from 'node:assert/strict'
import parser from 'yargs-parser'
const argv = parser('--foo=99 --bar=9987930 positional', {
string: ['bar']
})
assert.equal(argv.foo, 99)
assert.equal(argv.bar, '9987930')
assert.deepEqual(argv._, ['positional'])
What it did in the sandbox
Verifying this skill meant installing the package and running code against it with no route out. This is what happened, quoted from the run. The full ledger lists every package examined, including the ones that never became a skill.
-
prepare: npm run compilethe package -
prepare: npm run compilethe package
Getting it
With a subscription:
npx -y @modootoday/pmcp login
npx -y @modootoday/pmcp install @modootoday/pmcp-yargs-parser
It installs as a dev dependency of your project, and the MCP server finds it there like any other skill.