meow

🐈 CLI app helper

MIT License

Downloads
82M
Stars
3.5K
Committers
45

Bot releases are visible (Hide)

meow -

Published by sindresorhus about 4 years ago

  • Fix compatibility with vercel/ncc (#159) 71d640e

https://github.com/sindresorhus/meow/compare/v7.1.0...v7.1.1

meow -

Published by sindresorhus about 4 years ago

  • Improve flags option TypeScript types to acknowledge isMultiple and isRequired options (#154) e38789f

https://github.com/sindresorhus/meow/compare/v7.0.1...v7.1.0

meow -

Published by sindresorhus over 4 years ago

  • Fix isMultiple not handling multi-word flags (#150) e08eb4d

https://github.com/sindresorhus/meow/compare/v7.0.0...v7.0.1

meow -

Published by sindresorhus over 4 years ago

Breaking

  • Require Node.js 10 ea3fd99

Improvements

  • Add isRequired flag option (#141) 1eede6a
  • Add isMultiple flag option (#143) c4c5ee2

https://github.com/sindresorhus/meow/compare/v6.1.1...v7.0.0

meow -

Published by sindresorhus over 4 years ago

meow -

Published by sindresorhus over 4 years ago

  • Update yargs-parser dependency (#137) 4527b45

https://github.com/sindresorhus/meow/compare/v6.0.1...v6.1.0

meow -

Published by sindresorhus over 4 years ago

  • Improve the TypeScript types (#135) 16640f1

https://github.com/sindresorhus/meow/compare/v6.0.0...v6.0.1

meow -

Published by sindresorhus almost 5 years ago

Breaking

  • Require Node.js 8 cd635d4
  • Remove flag's aliases from the flags property (#108) f36715c
  • Only consider enabling autoHelp/autoVersion in case there is only one argument in process.argv (#114) cd29865
  • Switch from loud-rejection to hard-rejection f60c26e

Enhancements

  • Add TypeScript definition (#116) f1036df
  • Add support for number flag type (#103) 5ef9478
  • Add hardRejection option 2bcfee7

https://github.com/sindresorhus/meow/compare/v5.0.0...v6.0.0

meow -

Published by sindresorhus over 6 years ago

https://github.com/sindresorhus/meow/compare/v4.0.1...v5.0.0

meow -

Published by sindresorhus almost 7 years ago

Meow 4 is finally out ✨

Highlights

https://github.com/sindresorhus/meow/compare/v3.7.0...v4.0.0

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.

Package Rankings
Top 0.7% on Npmjs.org
Top 6.67% on Proxy.golang.org
Top 12.68% on Repo1.maven.org