yargs
18.2.0 · 20 Sep 2026MIT241.1M / weekRepositoryHomepagenpmAtom feed
Upgrading yargs from 4.5.0 to 4.8.1
5 releases in betweenevery note read
Release by release
- new
Add config lookup for .implies()
- fixed
commandDir: make dir relative to caller instead of require.main.filename
- fixed
Cache pkg lookups by path to avoid returning the wrong one
- fixed
Positional arguments were not being handled appropriately by parse()
- fixed
- new
- new
Add .commandDir(dir) to API to apply all command modules from a relative directory
- new
command: derive missing command string from module filename
- new
Builder is now optional for a command module
- fixed
- new
- fixed
Switch to using
constrather thanvar - fixed
Make stdout flush on newer versions of Node.js
- fixed
- new
completion: allow to get completions for any string, not just process.argv
- new
configuration: Allow to directly pass a configuration object to .config()
- new
validation: Add .skipValidation() method
- fixed
pkgConf: fix aliases issues in .pkgConf()
- new
- new
Switch to standard-version for release management
- new
Upgrade to version of yargs-parser that introduces some slick new features, great work @elas7. update cliui, replace win-spawn, replace badge.
- fixed
- new