meow
14.1.0 · 20 Feb 2026MIT50.6M / weekRepositoryHomepagenpmAtom feed
4.0.1 is the newest release of 4.x.
In short
1 breaking3 removed3 new
- breaking
Requires Node.js 4 or higher.
- removed
Removed support for using an array in the
helpoption. Just use a template literal. c80321d - removed
Removed support for the
pkgoption accepting a string. 2d4d890 - removed
Removed support for setting the
helpandversionoptions tofalse. Instead, use the newautoHelpandautoVersionoptions. 59dda7a
Release note
Meow 4 is finally out ✨
Highlights
- breaking
Requires Node.js 4 or higher.
Changed how
minimistoptions are specified. (See more below) 43401c3 554119bDisabled type inference by default. It can lead to some surprising behavior. Can be enabled again with the
inferTypeoption. 1662881- removed
Removed support for using an array in the
helpoption. Just use a template literal. c80321d - removed
Removed support for the
pkgoption accepting a string. 2d4d890 - removed
Removed support for setting the
helpandversionoptions tofalse. Instead, use the newautoHelpandautoVersionoptions. 59dda7a Uses exit code 2 when manually calling
cli.showHelp()now. 6a32bbc
Changed how minimist options are specified
In Meow v3 you specified minimist options top-level just like documented in the minimist readme. Now you specify them in a flags option, grouped by flag name instead of option type.
Before
const cli = meow(
`
Help text
`,
{
boolean: [
'unicorn'
],
string: [
'fooBar'
],
alias: {
u: 'unicorn'
},
default: {
foobar: 'foo'
}
}
});After
const cli = meow(
`
Help text
`,
flags: {
unicorn: {
type: 'boolean',
alias: 'u'
},
fooBar: {
type: 'string',
default: 'foo'
}
}
});I would strongly recommend specifying the type property whenever possible to reduce CLI argument parsing ambiguity.