Gathering detailed insights and metrics for cli-meow-help
Gathering detailed insights and metrics for cli-meow-help
Gathering detailed insights and metrics for cli-meow-help
Gathering detailed insights and metrics for cli-meow-help
npm install cli-meow-help
Typescript
Module System
Node Version
NPM Version
68.5
Supply Chain
97.7
Quality
77.5
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
184,616
Last Day
25
Last Week
500
Last Month
5,879
Last Year
51,591
36 Stars
33 Commits
3 Forks
3 Watching
2 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
4.0.0
Package Id
cli-meow-help@4.0.0
Unpacked Size
31.73 kB
Size
8.32 kB
File Count
9
NPM Version
10.2.0
Node Version
20.16.0
Publised On
13 Aug 2024
Cumulative downloads
Total Downloads
Last day
-79.7%
25
Compared to previous day
Last week
-36.6%
500
Compared to previous week
Last month
49.9%
5,879
Compared to previous month
Last year
-38%
51,591
Compared to previous year
3
4
Generate automatically formatted help text for
meow
CLI helper
1npm install meow cli-meow-help
1const meow = require('meow'); 2const meowHelp = require('cli-meow-help'); 3 4const commands = { 5 new: {desc: `Creates a new user account`}, 6 duplicate: {desc: `Duplicates a user account`} 7}; 8 9const flags = { 10 random: { 11 desc: `Prints random data`, 12 type: 'boolean', 13 default: true 14 } 15}; 16 17const helpText = meowHelp({ 18 name: `cli-command`, 19 flags, 20 commands 21}); 22 23meow(helpText, {flags}); 24 25// Now run `cli-command --help` to view the 26// following auto formatted & generated help info.
Type: object
Default: ā
1{ 2 name = `(CLI name undefined)`, 3 desc, 4 commands = {}, 5 flags = {}, 6 examples = [], 7 defaults = true, 8 header, 9 footer 10}
You can specify the options below.
Type: string
Default: (CLI name undefined)
The bin
command name of the cli that's used to run the CLI. Examples: corona
for the corona-cli that's installed globally or npx corona-cli
for if npx
is the recommended usage.
Type: string
Default: undefined
(optional)
Optionally define a description text for the help message.
Type: string
Default: {}
(optional)
Optionally, define a JavaScript object containing info on the CLI commands (i.e. meow
inputs). Each command has a desc
property to define the help text.
Type: string
Default: {}
Define CLI options (i.e. meow
flags) just like you do with meow
which is the flags
JavaScript object containing each flag with an extra desc
property to define the help text.
Type: Array
Default: []
List optional examples of how to use the CLI.
Check the test file for more context. Format example:
1const examples = [ 2 3 { 4 command: `new`, 5 flags: [`random`] 6 } 7];
Type: string
Default: true
(optional)
Prints out the default values of flags. Set to false
to disable.
Type: string
Default: undefined
(optional)
Optionally, add additional header information.
Type: string
Default: undefined
(optional)
Optionally, add additional footer information.
āÆ Read the changelog here ā
KEY: š¦ NEW
, š IMPROVE
, š FIX
, š DOC
, š RELEASE
, and š¤ TEST
I use Emoji-log, you should try it and simplify your git commits.
Ā (follow) To stay up to date on free & open-source software
Ā (follow) To get #OneDevMinute daily hot tips & trolls
Ā (subscribe) To tech talks & #OneDevMinute videos
Me (Ahmad Awais) and my incredible wife (Maedah Batool) are two engineers who fell in love with open source and then with each other. You can read more about me here. If you or your company use any of my projects or like what Iām doing then consider backing me. I'm in this for the long run. An open-source developer advocate.
This repository is part of the NodeCLI.com course.
After building hundreds of developer automation tools used by millions of developers, I am sharing exactly how you can do it yourself with minimum effective effort. Learn to build Node.js & JavaScript based CLI (Command Line Interface) apps. Automate the grunt work, do more in less time, impress your manager, and help the community. ā I'm sharing it all in this online video course. Node CLI Automation without wasting a 1,000 hours ā
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/29 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-12-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More