{"repo":"sindresorhus/meow","free":true,"listed":false,"github":"https://github.com/sindresorhus/meow","clone":"git clone https://github.com/sindresorhus/meow.git","description":"🐈 CLI app helper","language":"JavaScript","stars":3711,"topics":["javascript","meow","cli","command-line","nodejs","kitten"],"license":"MIT","category":"cli-tools","readme_excerpt":"meow CLI app helper I would recommend reading this guide on how to make user-friendly command-line tools. Features - Parses arguments - Converts flags to camelCase - Negates flags when using the --no- prefix - Outputs version when --version - Outputs description and supplied help text when --help - Sets the process title to the binary name defined in package.json - No dependencies! Install Usage API meow(helpText, options) meow(options) Returns an object with: - input (Array) - Non-flag arguments - command (string undefined) - The selected command when using commands - flags (Object) - Flags converted to camelCase excluding aliases - unnormalizedFlags (Object) - Flags converted to camelCase including aliases - pkg (Object) - The package.json object - help (string) - The help text used with --help - showHelp([exitCode=2]) (Function) - Show the help text and exit with exitCode - showVersion() (Function) - Show the version text and exit helpText Type: string Shortcut for the help option. options Type: object importMeta Required \\ Type: object Pass in import.meta . This is used to find the correct package.json file. input Type: object string Options for non-flag input arguments. The value is an object with any of: - type : Type of value. (Possible values: string boolean number array string-array boolean-array number-array ) - isRequired : Determine if at least one non-flag input argument is required. (Default: false) - If it's only known at runtime whether the input is required o","default_branch":null,"files":null,"tree":[],"storefront":"/r/sindresorhus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sindresorhus/meow/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}