{
  "id": "task_libraries:cli/javascript",
  "path": "/exapedia/javascript-cli-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript CLI libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript CLI libraries turn the arguments typed after a command into options, flags, and handler calls inside a Node.js program. A parser reads that argument list and checks it against the commands and options the program declares. These libraries define the commands of build tools, deploy scripts, and code generators that developers and coding agents run from a terminal."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript CLI libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#commander",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F134"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#yargs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F146"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#argparse",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F162"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#cac",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F180"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#meow",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F196"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#citty",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F214"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#oclif-core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F232"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sade",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F250"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#commander",
          "label": [
            {
              "t": "text",
              "text": "Commander"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F135"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Command-specific schemas",
            "Async handler result"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#commander",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F134"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#yargs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F146"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#argparse",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F162"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#cac",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F180"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#meow",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F196"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#citty",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F214"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#oclif-core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F232"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sade",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F250"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "commander",
          "name": [
            {
              "t": "fact",
              "fact": "F134"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/tj/commander.js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/commander"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/tj/commander.js/master/Readme.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/tj/commander.js/master/Readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F134"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { Command } from \"commander\";\nconst cli = new Command();\ncli.option(\"--name <name>\").parse([\"node\", \"hello\", \"--name\", \"Ada\"]);\nconsole.log(cli.opts().name);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/tj/commander.js/master/Readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "Readme.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20applications%20using%20commander%20to%20build%20command%20trees%2C%20validate%20flags%2C%20configure%20help%20and%20execute%20asynchronous%20commands&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F134"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F139"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "yargs",
          "name": [
            {
              "t": "fact",
              "fact": "F146"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/yargs/yargs"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/yargs"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/yargs/yargs/main/docs/api.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F38"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/yargs/yargs/main/docs/api.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F146"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/lerna/lerna",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export function lernaCLI(argv?: string | readonly string[], cwd?: string) {\n  const cli = yargs(argv, cwd);\n\n  return globalOptions(cli)\n    .usage(\"Usage: $0 <command> [options]\")\n    .demandCommand(1, \"A command is required. Pass --help to see all available commands and options.\")\n    .recommendCommands()\n    .strict()\n    .fail((msg: string, err: any) => {\n      // certain yargs validations throw strings :P\n      const actual = err || new Error(msg);\n\n      // ValidationErrors are already logged, as are package errors\n      if (actual.name !== \"ValidationError\" && !actual.pkg) {\n        // the recommendCommands() message is too terse\n        if (/Did you mean/.test(actual.message)) {\n          // TODO: refactor to address type issues\n          // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n          // @ts-ignore\n          log.error(\"lerna\", `Unknown command \"${cli.parsed.argv._[0]}\"`);\n        }\n\n        log.error(\"lerna\", actual.message);\n      }\n\n      // exit non-zero so the CLI can be usefully chained\n      cli.exit(actual.exitCode > 0 ? actual.exitCode : 1, actual);\n    })\n    .alias(\"h\", \"help\")\n    .alias(\"v\", \"version\")\n    .wrap(cli.terminalWidth()).epilogue(dedent`\n      When a command fails, all logs are written to lerna-debug.log in the current working directory.\n\n      For more information, check out the docs at https://lerna.js.org/docs/introduction\n    `);\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/lerna/lerna/blob/2a7ecf27c271a8f0b3616b7d91bb76bab3344f01/libs/core/src/lib/cli.ts#L18",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F159"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20applications%20using%20yargs%20to%20build%20command%20trees%2C%20validate%20flags%2C%20configure%20help%20and%20execute%20asynchronous%20commands&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F146"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import yargs from \"yargs\";\nconst argv = yargs([\"--name\", \"Ada\"]).option(\"name\", { type: \"string\" }).parseSync();\nconsole.log(argv.name);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/yargs/yargs/main/docs/api.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F151"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "argparse",
          "name": [
            {
              "t": "fact",
              "fact": "F162"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/nodeca/argparse"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/argparse"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/nodeca/argparse/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F268"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/nodeca/argparse/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F162"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F269"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F270"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/fontello/fontello",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F178"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "function (N) {\n  return Promise.resolve().then(() => {\n    // main parser instance\n    let argparser = new ArgumentParser({\n      add_help: true,\n      epilog:   'See \\'%(prog)s <command> --help\\' for ' +\n                'more information on specific command.'\n    });\n\n    // sub-parser for commands\n    let cmdArgparsers = argparser.add_subparsers({\n      title:    'Known commands',\n      metavar:  '<command>',\n      dest:     'command'\n    });\n\n    // collect cli scripts\n\n    let commands = {};\n\n    N.apps.forEach(app => {\n      let rootDir = path.join(app.root, 'cli');\n\n      glob('**/*.js', {\n        cwd: rootDir\n      })\n      .filter(name => !/^[._]|\\\\[._]|\\/[_.]/.test(name))\n      .forEach(name => {\n        let cli = require(path.join(rootDir, name));\n        let cmd = cli.commandName || path.parse(name).name;\n\n        let subArgparser = cmdArgparsers.add_parser(cmd, cli.parserParameters || {});\n        let args = cli.commandLineArguments || [];\n\n        args.forEach(item => subArgparser.add_argument(...item.args, item.options || {}));\n\n        // store command\n        commands[cmd] = cli;\n      });\n    });\n\n    if (Object.keys(commands).length === 0) {\n      throw new Error(\"Can't find available CLI commands. Please, check config files.\");\n    }\n\n    // by default (no params) - run server\n    if (N.args.length === 0 && commands.server) {\n      N.args.unshift('server');\n    }\n\n    let args = argparser.parse_args(N.args);\n\n    // set process title\n    process.title = 'nodeca-' + args.command;\n\n    return commands[args.command].run(N, args);\n  });\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/fontello/fontello/blob/71330f51d11b00fa75b6c516db2ea4d62da67330/lib/system/runner/exec_cli.js#L20",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F177"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=argparse%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F162"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const { ArgumentParser } = require(\"argparse\");\nconst parser = new ArgumentParser({ description: \"Greeting input\" });\nparser.add_argument(\"--name\");\nconsole.log(parser.parse_args([\"--name\", \"Ada\"]).name);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/nodeca/argparse/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F167"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "cac",
          "name": [
            {
              "t": "fact",
              "fact": "F180"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/cacjs/cac"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/cac"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/cacjs/cac/main/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F63"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/cacjs/cac/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F180"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/egoist/tsup",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F194"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export async function main(options: Options = {}) {\n  const cli = cac('tsup')\n\n  cli\n    .command('[...files]', 'Bundle files', {\n      ignoreOptionDefaultValue: true,\n    })\n    .option('--entry.* <file>', 'Use a key-value pair as entry files')\n    .option('-d, --out-dir <dir>', 'Output directory', { default: 'dist' })\n    .option('--format <format>', 'Bundle format, \"cjs\", \"iife\", \"esm\"', {\n      default: 'cjs',\n    })\n    .option('--minify [terser]', 'Minify bundle')\n    .option('--minify-whitespace', 'Minify whitespace')\n    .option('--minify-identifiers', 'Minify identifiers')\n    .option('--minify-syntax', 'Minify syntax')\n    .option(\n      '--keep-names',\n      'Keep original function and class names in minified code',\n    )\n    .option('--target <target>', 'Bundle target, \"es20XX\" or \"esnext\"', {\n      default: 'es2017',\n    })\n    .option(\n      '--legacy-output',\n      'Output different formats to different folder instead of using different extensions',\n    )\n    .option('--dts [entry]', 'Generate declaration file')\n    .option('--dts-resolve', 'Resolve externals types used for d.ts files')\n    .option('--dts-only', 'Emit declaration files only')\n    .option(\n      '--experimental-dts [entry]',\n      'Generate declaration file (experimental)',\n    )\n    .option(\n      '--sourcemap [inline]',\n      'Generate external sourcemap, or inline source: --sourcemap inline',\n    )\n    .option(\n      '--watch [path]',\n      'Watch mode, if path is not specified, it watches the current folder \".\". Repeat \"--watch\" for more than one path',\n    )\n    .option('--ignore-watch <path>', 'Ignore custom paths in watch mode')\n    .option(\n      '--onSuccess <command>',\n      'Execute command after successful build, specially useful for watch mode',\n    )\n    .option('--env.* <value>', 'Define compile-time env variables')\n    .option(\n      '--inject <file>',\n      'Replace a global variable with an import from another file',\n    )\n    .option('--define.* <value>', 'Define compile-time constants')\n    .option(\n      '--external <name>',\n      'Mark specific packages / package.json (dependencies and peerDependencies) as external',\n    )\n    .option('--global-name <name>', 'Global variable name for iife format')\n    .option('--jsxFactory <jsxFactory>', 'Name of JSX factory function', {\n      default: 'React.createElement',\n    })\n    .option('--jsxFragment <jsxFragment>', 'Name of JSX fragment function', {\n      default: 'React.Fragment',\n    })\n    .option('--replaceNodeEnv', 'Replace process.env.NODE_ENV')\n    .option('--no-splitting', 'Disable code splitting')\n    .option('--clean', 'Clean output directory')\n    .option(\n      '--silent',\n      'Suppress non-error logs (excluding \"onSuccess\" process output)',\n    )\n    .option('--pure <express>', 'Mark specific expressions as pure')\n    .option('--metafile', 'Emit esbuild metafile (a JSON file)')\n    .option('--platform <platform>', 'Target platform', {\n      default: 'node',\n    })\n    .option('--loader <ext=loader>', 'Specify the loader for a file extension')\n    .option('--tsconfig <filename>', 'Use a custom tsconfig')\n    .option('--config <filename>', 'Use a custom config file')\n    .option('--no-config', 'Disable config file')\n    .option('--shims', 'Enable cjs and esm shims')\n    .option('--inject-style', 'Inject style tag to document head')\n    .option(\n      '--treeshake [strategy]',\n      'Using Rollup for treeshaking instead, \"recommended\" or \"smallest\" or \"safest\"',\n    )\n    .option('--publicDir [dir]', 'Copy public directory to output directory')\n    .option(\n      '--killSignal <signal>',\n      'Signal to kill child process, \"SIGTERM\" or \"SIGKILL\"',\n    )\n    .option('--cjsInterop', 'Enable cjs interop')\n    .action(async (files: string[], flags) => {\n      const { build } = await import('.')\n      Object.assign(options, {\n        ...flags,\n      })\n      if (!options.entry && files.length > 0) {\n        options.entry = files.map(slash)\n      }\n      if (flags.format) {\n        const format = ensureArray(flags.format) as Format[]\n        options.format = format\n      }\n      if (flags.external) {\n        const external = ensureArray(flags.external)\n        options.external = external\n      }\n      if (flags.target) {\n        options.target = flags.target.includes(',')\n          ? flags.target.split(',')\n          : flags.target\n      }\n      if (flags.dts || flags.dtsResolve || flags.dtsOnly) {\n        options.dts = {}\n        if (typeof flags.dts === 'string') {\n          options.dts.entry = flags.dts\n        }\n        if (flags.dtsResolve) {\n          options.dts.resolve = flags.dtsResolve\n        }\n        if (flags.dtsOnly) {\n          options.dts.only = true\n        }\n      }\n      if (flags.inject) {\n        const inject = ensureArray(flags.inject)\n        options.inject = inject\n      }\n      if (flags.define) {\n        const define: Record<string, string> = flatten(flags.define)\n        options.define = define\n      }\n      if (flags.loader) {\n        const loader = ensureArray(flags.loader)\n        options.loader = loader.reduce((result, item) => {\n          const parts = item.split('=')\n          return {\n            ...result,\n            [parts[0]]: parts[1],\n          }\n        }, {})\n      }\n      await build(options)\n    })\n\n  cli.help()\n\n  cli.version(version)\n\n  cli.parse(process.argv, { run: false })\n  await cli.runMatchedCommand()\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/egoist/tsup/blob/198479b814f5981032dc0b7cd52c4b9e4b699ac3/src/cli-main.ts#L11",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F193"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20applications%20using%20cac%20to%20build%20command%20trees%2C%20validate%20flags%2C%20configure%20help%20and%20execute%20asynchronous%20commands&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F180"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { cac } from \"cac\";\nconst cli = cac(\"hello\");\nconst parsed = cli.option(\"--name <name>\", \"Name\").parse([\"node\", \"hello\", \"--name\", \"Ada\"]);\nconsole.log(parsed.options.name);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/cacjs/cac/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F185"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "meow",
          "name": [
            {
              "t": "fact",
              "fact": "F196"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/sindresorhus/meow"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/meow"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/sindresorhus/meow/main/readme.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F271"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/sindresorhus/meow/main/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F196"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F272"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F273"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/stylelint/stylelint",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F212"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export function buildCLI(argv) {\n\treturn meow(helpText, {\n\t\tautoHelp: false,\n\t\tautoVersion: false,\n\t\targv,\n\n\t\t// NOTE: `meow()` infers flag types when passing a flag object with inline.\n\t\t// However, `checkInvalidCLIOptions()` also needs this flag object.\n\t\t// So, unfortunately, the return value type inference by `meow()` is unavailable here.\n\t\t//\n\t\t// @ts-expect-error -- TS2322: Type '{ allowEmptyInput: {...} }' is not assignable to type 'AnyFlags'.\n\t\tflags,\n\n\t\t// NOTE: We must enable `allowUnknownFlags` because meow exits with `2` if `allowUnknownFlags` is disabled.\n\t\t// Instead, we use our different exit code with `checkInvalidCLIOptions()`.\n\t\t// See also https://github.com/sindresorhus/meow/blob/v12.0.1/source/validate.js#L75\n\t\tallowUnknownFlags: true,\n\n\t\t// NOTE: If CLI flags are unspecified (e.g., `--cache` nor `--no-cache`), we want to fall back to config properties (e.g., `cache`).\n\t\tbooleanDefault: undefined,\n\n\t\timportMeta: import.meta,\n\t});\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/stylelint/stylelint/blob/b96814344b7d1088e3459c44dcafebfbdabff412/lib/cli.mjs#L725",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F211"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=meow%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F196"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import meow from \"meow\";\nconst cli = meow(\"Usage: hello --name <name>\", {\n  importMeta: import.meta,\n  argv: [\"--name\", \"Ada\"],\n  flags: { name: { type: \"string\" } },\n});\nconsole.log(cli.flags.name);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/sindresorhus/meow/main/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "readme.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F201"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "citty",
          "name": [
            {
              "t": "fact",
              "fact": "F214"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/unjs/citty"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/citty"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/unjs/citty/main/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F274"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/unjs/citty/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F214"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F275"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F276"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/heygen-com/hyperframes",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F230"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export async function showUsage(\n  cmd: CommandDef,\n  parent?: CommandDef,\n  print: (text: string) => void = console.log,\n): Promise<void> {\n  if (!parent) {\n    print(renderRootHelp() + \"\\n\");\n    return;\n  }\n\n  const meta = await (typeof cmd.meta === \"function\" ? cmd.meta() : cmd.meta);\n  const usage = await renderUsage(cmd, parent);\n  print((isColorSupported ? usage : stripVTControlCharacters(usage)) + \"\\n\");\n\n  const name = meta?.name;\n  if (name) {\n    const parentMeta = await (typeof parent.meta === \"function\" ? parent.meta() : parent.meta);\n    const parentName = parentMeta?.name;\n    const examples = STATIC_EXAMPLES[name] ?? (await loadExamples(name, parentName));\n    if (examples) {\n      print(formatExamples(examples) + \"\\n\");\n    }\n  }\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/heygen-com/hyperframes/blob/6bd0b5d870ef197b1ff6d3d50d17944444c31a8f/packages/cli/src/help.ts#L225",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F229"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=citty%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F214"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { defineCommand, runMain } from \"citty\";\nconst main = defineCommand({\n  meta: { name: \"hello\" },\n  args: { name: { type: \"string\", default: \"Ada\" } },\n  run({ args }) { console.log(`Hello ${args.name}`); },\n});\nawait runMain(main);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/unjs/citty/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F219"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "oclif-core",
          "name": [
            {
              "t": "fact",
              "fact": "F232"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/oclif/core"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@oclif/core"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/oclif/core/main/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F277"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/oclif/core/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F232"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/NVIDIA/NemoClaw",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F248"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export async function runOclifCommandById(\n  commandId: string,\n  args: string[],\n  opts: OclifCommandRunOptions,\n): Promise<void> {\n  const config = await OclifConfig.load(opts.rootDir);\n  applyBrandedBin(config, opts.publicSandboxName);\n  const errorLine = opts.error ?? console.error;\n  const exit = opts.exit ?? ((code: number) => process.exit(code));\n  const originalArgv = process.argv;\n  const nativeArgv = [...commandId.split(\":\"), ...args];\n  process.argv = [originalArgv[0] ?? process.execPath, originalArgv[1] ?? CLI_NAME, ...nativeArgv];\n\n  try {\n    await config.runCommand(commandId, args);\n  } catch (error) {\n    const exitCode = getOclifExitCode(error);\n    if (exitCode === 0) {\n      // Only oclif's own ExitError(0) is an intentional graceful exit (e.g.\n      // Command.exit(0) / --help — its message is the synthetic \"EEXIT: 0\",\n      // which must stay silent). Keep that path at exit 0.\n      if (isOclifExitError(error)) {\n        process.exitCode = 0;\n        return;\n      }\n      // #5974: any OTHER error that merely happens to carry oclif.exit === 0\n      // is a genuine failure that bubbled out of a command's run(). #2666\n      // stopped it being silently swallowed (exit 0 + empty output); here we\n      // also refuse to report success for it — surface its message AND exit\n      // non-zero so `$?` stays scriptable. Fall back to a generic line if\n      // formatOclifError() returns empty so a blank message never reintroduces\n      // the silent path.\n      const message = formatOclifError(error) || \"Command exited with no output.\";\n      errorLine(`  ${message}`);\n      process.exitCode = 1;\n      return;\n    }\n\n    if (isOclifParseError(error)) {\n      errorLine(`  ${formatOclifError(error)}`);\n      exit(exitCode ?? 1);\n    }\n\n    // NCQ #3180: oclif's Command.exit(code) throws an ExitError carrying\n    // `oclif.exit`. Treat that as a graceful exit with the requested code\n    // so we don't leak a raw `at Object.exit (... /@oclif/core/...)` stack\n    // trace to the user. Other oclif error classes (e.g. RequiredArgsError)\n    // are left to bubble up so oclif's own handler still prints them.\n    if (isOclifExitError(error) && typeof exitCode === \"number\") {\n      exit(exitCode);\n    }\n\n    throw error;\n  } finally {\n    process.argv = originalArgv;\n  }\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/NVIDIA/NemoClaw/blob/6f36feffb7a0f448194eafef3042e7ad47faa0de/src/lib/cli/oclif-runner.ts#L97",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F247"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40oclif/core%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F232"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { Args, Parser } from \"@oclif/core\";\nconst { args } = await Parser.parse([\"Ada\"], {\n  args: { name: Args.string({ required: true }) },\n});\nconsole.log(args.name);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/oclif/core/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F237"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "sade",
          "name": [
            {
              "t": "fact",
              "fact": "F250"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/lukeed/sade"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/sade"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/lukeed/sade/master/readme.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F278"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/lukeed/sade/master/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F250"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F266"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F267"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/developit/microbundle",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F266"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "handler => {\n\tconst ENABLE_MODERN = process.env.MICROBUNDLE_MODERN !== 'false';\n\n\tconst DEFAULT_FORMATS = ENABLE_MODERN ? 'modern,esm,cjs,umd' : 'esm,cjs,umd';\n\n\tconst cmd = type => (str, opts) => {\n\t\topts.watch = opts.watch || type === 'watch';\n\n\t\topts.entries = toArray(str || opts.entry).concat(opts._);\n\n\t\tif (typeof opts.compress !== 'undefined') {\n\t\t\t// Convert `--compress true/false/1/0` to booleans:\n\t\t\tif (typeof opts.compress !== 'boolean') {\n\t\t\t\topts.compress = opts.compress !== 'false' && opts.compress !== '0';\n\t\t\t}\n\t\t} else {\n\t\t\t// the default compress value is `true` for web, `false` for Node:\n\t\t\topts.compress = opts.target !== 'node';\n\t\t}\n\n\t\thandler(opts);\n\t};\n\n\tlet prog = sade('microbundle');\n\n\tprog\n\t\t.version(version)\n\t\t.option('--entry, -i', 'Entry module(s)')\n\t\t.option('--output, -o', 'Directory to place build files into')\n\t\t.option(\n\t\t\t'--format, -f',\n\t\t\t`Only build specified formats (any of ${DEFAULT_FORMATS} or iife)`,\n\t\t\tDEFAULT_FORMATS,\n\t\t)\n\t\t.option('--watch, -w', 'Rebuilds on any change', false)\n\t\t.option(\n\t\t\t'--pkg-main',\n\t\t\t'Outputs files analog to package.json main entries',\n\t\t\ttrue,\n\t\t)\n\t\t.option('--target', 'Specify your target environment (node or web)', 'web')\n\t\t.option('--external', `Specify external dependencies, or 'none'`)\n\t\t.option('--globals', `Specify globals dependencies, or 'none'`)\n\t\t.example('--globals react=React,jquery=$')\n\t\t.option('--define', 'Replace constants with hard-coded values')\n\t\t.example('--define API_KEY=1234')\n\t\t.option('--alias', `Map imports to different modules`)\n\t\t.example('--alias react=preact')\n\t\t.option(\n\t\t\t'--compress',\n\t\t\t'Compress output using Terser (default true when --target is web, false when --target is node)',\n\t\t)\n\t\t.example('build --target web --no-compress')\n\t\t.option('--strict', 'Enforce undefined global context and add \"use strict\"')\n\t\t.option('--name', 'Specify name exposed in UMD builds')\n\t\t.option('--cwd', 'Use an alternative working directory', '.')\n\t\t.option('--sourcemap', 'Generate source map')\n\t\t.example(\"watch --no-sourcemap # don't generate sourcemaps\")\n\t\t.option('--raw', 'Show raw byte size', false)\n\t\t.option('--jsx', 'A custom JSX pragma like React.createElement', 'h')\n\t\t.option(\n\t\t\t'--jsxFragment',\n\t\t\t'A custom JSX fragment pragma like React.Fragment',\n\t\t\t'Fragment',\n\t\t)\n\t\t.option(\n\t\t\t'--jsxImportSource',\n\t\t\t'Declares the module specifier to be used for importing jsx factory functions',\n\t\t)\n\t\t.option('--tsconfig', 'Specify the path to a custom tsconfig.json')\n\t\t.example('build --tsconfig tsconfig.build.json')\n\t\t.option(\n\t\t\t'--generateTypes',\n\t\t\t'Whether or not to generate types , if `types` or `typings` is set in `package.json` then it will default to be `true`',\n\t\t)\n\t\t.option('--css', 'Where to output CSS: \"inline\" or \"external\"', 'external')\n\t\t.option(\n\t\t\t'--css-modules',\n\t\t\t'Turns on css-modules for all .css imports. Passing a string will override the scopeName. eg --css-modules=\"_[hash]\"',\n\t\t\tnull,\n\t\t)\n\t\t.option(\n\t\t\t'--workers',\n\t\t\t'Bundle module workers - see https://github.com/surma/rollup-plugin-off-main-thread#auto-bundling',\n\t\t\tfalse,\n\t\t)\n\t\t.option(\n\t\t\t'--visualize',\n\t\t\t'Generate bundle makeup visualization (stats.html)',\n\t\t\tfalse,\n\t\t);\n\n\tprog\n\t\t.command('build [...entries]', '', { default: true })\n\t\t.describe('Build once and exit')\n\t\t.action(cmd('build'));\n\n\tprog\n\t\t.command('watch [...entries]')\n\t\t.describe('Rebuilds on any change')\n\t\t.action(cmd('watch'));\n\n\t// Parse argv; add extra aliases\n\treturn argv =>\n\t\tprog.parse(argv, {\n\t\t\talias: {\n\t\t\t\to: ['output', 'd'],\n\t\t\t\ti: ['entry', 'entries', 'e'],\n\t\t\t\tw: ['watch'],\n\t\t\t},\n\t\t\tboolean: ['generateTypes'],\n\t\t});\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/developit/microbundle/blob/9f56e06b0d1d412f3f0aa4c94d332e77791dd09b/src/prog.js#L6",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F265"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=sade%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F250"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import sade from \"sade\";\nsade(\"hello <name>\")\n  .action(name => console.log(`Hello ${name}`))\n  .parse([\"node\", \"hello\", \"Ada\"]);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/lukeed/sade/master/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "readme.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F255"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which JavaScript CLI library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#commander",
          "label": [
            {
              "t": "text",
              "text": "Commander"
            }
          ]
        },
        {
          "t": "text",
          "text": " builds command trees with options, handlers, and generated help, and it has the most monthly downloads, at "
        },
        {
          "t": "fact",
          "fact": "F135"
        },
        {
          "t": "text",
          "text": ". "
        },
        {
          "t": "link",
          "href": "#yargs",
          "label": [
            {
              "t": "text",
              "text": "yargs"
            }
          ]
        },
        {
          "t": "text",
          "text": " adds value coercion and validation, while "
        },
        {
          "t": "link",
          "href": "#oclif-core",
          "label": [
            {
              "t": "text",
              "text": "oclif"
            }
          ]
        },
        {
          "t": "text",
          "text": " organizes larger CLIs as command classes with plugins."
        }
      ]
    },
    {
      "q": "What is Commander.js?",
      "a": [
        {
          "t": "link",
          "href": "#commander",
          "label": [
            {
              "t": "text",
              "text": "Commander"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a Node.js library for command-line programs. It defines commands, options, and action handlers, then parses the command line and prints generated help."
        }
      ]
    },
    {
      "q": "Yargs vs Commander: which should I use?",
      "a": [
        {
          "t": "text",
          "text": "Commander defines command trees with a fluent API and needs "
        },
        {
          "t": "code",
          "text": "parseAsync"
        },
        {
          "t": "text",
          "text": " for asynchronous actions. yargs converts and validates option values during parsing with "
        },
        {
          "t": "code",
          "text": "coerce"
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "code",
          "text": "demandOption"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "q": "Oclif vs Commander: which should I use?",
      "a": [
        {
          "t": "text",
          "text": "oclif builds class-based CLIs with command discovery and plugins, the structure behind the Salesforce CLI. Commander keeps commands in one fluent program definition."
        }
      ]
    },
    {
      "q": "How does Commander wait for asynchronous actions?",
      "a": [
        {
          "t": "fact",
          "fact": "F123"
        }
      ]
    },
    {
      "q": "How can yargs preserve leading zeros in identifiers?",
      "a": [
        {
          "t": "fact",
          "fact": "F129"
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, commander",
      "display": "Commander",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, commander",
      "display": "2.8B",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, commander",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, commander",
      "display": "15.0.0",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, commander",
      "display": "v15.0.0",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, commander",
      "display": "28.5K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Subcommands, commander",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Required options, commander",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Async actions, commander",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "TypeScript types, commander",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, commander",
      "display": "npm install commander",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, commander",
      "display": "Builds command trees with options, argument validation, action handlers, and generated help.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, commander",
      "display": "Builds nested command trees",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, commander",
      "display": "Define subcommands and their own arguments, options, and handlers.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, commander",
      "display": "Rejects missing required options",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, commander",
      "display": "Use requiredOption when a named option must be supplied.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, commander",
      "display": "Async actions need asynchronous parsing",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, commander",
      "display": "Call parseAsync when any action handler is asynchronous.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, commander",
      "display": "Strong option inference needs extras",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, commander",
      "display": "Install extra-typings to infer action parameters and parsed option types.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, commander",
      "display": "import { Command } from 'commander';\nconst program = new Command();\n\nprogram\n  .name('string-util')\n  .description('CLI to some JavaScript string utilities')\n  .version('0.8.0');\n\nprogram.command('split')\n  .description('Split a string into substrings and display as an array')\n  .argument('<string>', 'string to split')\n  .option('--first', 'display just the first substring')\n  .option('-s, --separator <char>', 'separator character', ',')\n  .action((str, options) => {\n    const limit = options.first ? 1 : undefined;\n    console.log(str.split(options.separator, limit));\n  });\n\nprogram.parse();\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, commander",
      "display": "const bootstrap = async () => {\n  const program = new Command();\n  (program as any).__nestCliEsm = true;\n  program\n    .version(\n      require('../package.json').version,\n      '-v, --version',\n      'Output the current version.',\n    )\n    .usage('<command> [options]')\n    .helpOption('-h, --help', 'Output usage information.');\n\n  if (localBinExists()) {\n    const localCommandLoader = await loadLocalBinCommandLoader();\n    await localCommandLoader.load(program);\n  } else {\n    await CommandLoader.load(program);\n  }\n  await program.parseAsync(process.argv);\n\n  if (!process.argv.slice(2).length) {\n    program.outputHelp();\n  }\n};\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, commander",
      "display": "nest.ts · bootstrap()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, commander",
      "display": "nestjs/nest-cli",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, nestjs/nest-cli",
      "display": "2.2K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, nestjs/nest-cli",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Library name, yargs",
      "display": "yargs",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, yargs",
      "display": "1.4B",
      "asOf": "2026-11-15"
    },
    "F29": {
      "label": "License, yargs",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, yargs",
      "display": "18.2.0",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Undated package release, yargs",
      "display": "v18.2.0",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Repository stars, yargs",
      "display": "11.5K",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Subcommands, yargs",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Required options, yargs",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Async actions, yargs",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "TypeScript types, yargs",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Install, yargs",
      "display": "npm install yargs",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "What it does, yargs",
      "display": "Parses command-line arguments with command modules, validation, and configurable value coercion.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths lead, yargs",
      "display": "Transforms option values during parsing",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths, yargs",
      "display": "Use coerce to transform values or reject invalid inputs.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths lead, yargs",
      "display": "Requires named flags explicitly",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths, yargs",
      "display": "Use demandOption for flags that every invocation needs.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations lead, yargs",
      "display": "Numeric-looking strings are converted",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations, yargs",
      "display": "Declare string options to preserve leading-zero identifiers.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations lead, yargs",
      "display": "Directory discovery flattens commands",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations, yargs",
      "display": "Register nested command trees explicitly.",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Quickstart, yargs",
      "display": "#!/usr/bin/env node\nimport yargs from 'yargs';\nimport {hideBin} from 'yargs/helpers';\nconst argv = yargs(hideBin(process.argv)).parse();\n\nif (argv.ships > 3 && argv.distance < 53.5) {\n  console.log('Plunder more riffiwobbles!');\n} else {\n  console.log('Retreat from the xupptumblers!');\n}\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function, yargs",
      "display": "export function lernaCLI(argv?: string | readonly string[], cwd?: string) {\n  const cli = yargs(argv, cwd);\n\n  return globalOptions(cli)\n    .usage(\"Usage: $0 <command> [options]\")\n    .demandCommand(1, \"A command is required. Pass --help to see all available commands and options.\")\n    .recommendCommands()\n    .strict()\n    .fail((msg: string, err: any) => {\n      // certain yargs validations throw strings :P\n      const actual = err || new Error(msg);\n\n      // ValidationErrors are already logged, as are package errors\n      if (actual.name !== \"ValidationError\" && !actual.pkg) {\n        // the recommendCommands() message is too terse\n        if (/Did you mean/.test(actual.message)) {\n          // TODO: refactor to address type issues\n          // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n          // @ts-ignore\n          log.error(\"lerna\", `Unknown command \"${cli.parsed.argv._[0]}\"`);\n        }\n\n        log.error(\"lerna\", actual.message);\n      }\n\n      // exit non-zero so the CLI can be usefully chained\n      cli.exit(actual.exitCode > 0 ? actual.exitCode : 1, actual);\n    })\n    .alias(\"h\", \"help\")\n    .alias(\"v\", \"version\")\n    .wrap(cli.terminalWidth()).epilogue(dedent`\n      When a command fails, all logs are written to lerna-debug.log in the current working directory.\n\n      For more information, check out the docs at https://lerna.js.org/docs/introduction\n    `);\n}\n",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project function reference, yargs",
      "display": "cli.ts · lernaCLI()",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project repository, yargs",
      "display": "lerna/lerna",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project stars, lerna/lerna",
      "display": "36.0K",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project push date, lerna/lerna",
      "display": "Nov 2026",
      "asOf": "2026-11-13"
    },
    "F53": {
      "label": "Library name, cac",
      "display": "CAC",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Monthly downloads, cac",
      "display": "259.5M",
      "asOf": "2026-11-15"
    },
    "F55": {
      "label": "License, cac",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Package release, cac",
      "display": "7.1.0",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Undated package release, cac",
      "display": "v7.1.0",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Repository stars, cac",
      "display": "3.1K",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Subcommands, cac",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Async actions, cac",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "TypeScript types, cac",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Install, cac",
      "display": "npm install cac",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "What it does, cac",
      "display": "Builds small command-line interfaces with subcommands, variadic arguments, and nested option objects.",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths lead, cac",
      "display": "Groups dotted options into objects",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths, cac",
      "display": "Dot-nested flags are merged into one option object.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths lead, cac",
      "display": "Supports variadic command arguments",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths, cac",
      "display": "Collect multiple positional values with a variadic argument.",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations lead, cac",
      "display": "Commands need actions for validation",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations, cac",
      "display": "Attach an action to enable action-command option checks.",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations lead, cac",
      "display": "Negated flags need explicit definitions",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations, cac",
      "display": "Declare the no-prefixed option to accept false from the command line.",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Quickstart, cac",
      "display": "// examples/help.js\nimport cac from 'cac'\nconst cli = cac()\n\ncli.option('--type [type]', 'Choose a project type', {\n  default: 'node',\n})\ncli.option('--name <name>', 'Provide your name')\n\ncli.command('lint [...files]', 'Lint files').action((files, options) => {\n  console.log(files, options)\n})\n\n// Display help message when `-h` or `--help` appears\ncli.help()\n// Display version number when `-v` or `--version` appears\n// It's also used in help message\ncli.version('0.0.0')\n\ncli.parse()\n",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project function, cac",
      "display": "export async function main(options: Options = {}) {\n  const cli = cac('tsup')\n\n  cli\n    .command('[...files]', 'Bundle files', {\n      ignoreOptionDefaultValue: true,\n    })\n    .option('--entry.* <file>', 'Use a key-value pair as entry files')\n    .option('-d, --out-dir <dir>', 'Output directory', { default: 'dist' })\n    .option('--format <format>', 'Bundle format, \"cjs\", \"iife\", \"esm\"', {\n      default: 'cjs',\n    })\n    .option('--minify [terser]', 'Minify bundle')\n    .option('--minify-whitespace', 'Minify whitespace')\n    .option('--minify-identifiers', 'Minify identifiers')\n    .option('--minify-syntax', 'Minify syntax')\n    .option(\n      '--keep-names',\n      'Keep original function and class names in minified code',\n    )\n    .option('--target <target>', 'Bundle target, \"es20XX\" or \"esnext\"', {\n      default: 'es2017',\n    })\n    .option(\n      '--legacy-output',\n      'Output different formats to different folder instead of using different extensions',\n    )\n    .option('--dts [entry]', 'Generate declaration file')\n    .option('--dts-resolve', 'Resolve externals types used for d.ts files')\n    .option('--dts-only', 'Emit declaration files only')\n    .option(\n      '--experimental-dts [entry]',\n      'Generate declaration file (experimental)',\n    )\n    .option(\n      '--sourcemap [inline]',\n      'Generate external sourcemap, or inline source: --sourcemap inline',\n    )\n    .option(\n      '--watch [path]',\n      'Watch mode, if path is not specified, it watches the current folder \".\". Repeat \"--watch\" for more than one path',\n    )\n    .option('--ignore-watch <path>', 'Ignore custom paths in watch mode')\n    .option(\n      '--onSuccess <command>',\n      'Execute command after successful build, specially useful for watch mode',\n    )\n    .option('--env.* <value>', 'Define compile-time env variables')\n    .option(\n      '--inject <file>',\n      'Replace a global variable with an import from another file',\n    )\n    .option('--define.* <value>', 'Define compile-time constants')\n    .option(\n      '--external <name>',\n      'Mark specific packages / package.json (dependencies and peerDependencies) as external',\n    )\n    .option('--global-name <name>', 'Global variable name for iife format')\n    .option('--jsxFactory <jsxFactory>', 'Name of JSX factory function', {\n      default: 'React.createElement',\n    })\n    .option('--jsxFragment <jsxFragment>', 'Name of JSX fragment function', {\n      default: 'React.Fragment',\n    })\n    .option('--replaceNodeEnv', 'Replace process.env.NODE_ENV')\n    .option('--no-splitting', 'Disable code splitting')\n    .option('--clean', 'Clean output directory')\n    .option(\n      '--silent',\n      'Suppress non-error logs (excluding \"onSuccess\" process output)',\n    )\n    .option('--pure <express>', 'Mark specific expressions as pure')\n    .option('--metafile', 'Emit esbuild metafile (a JSON file)')\n    .option('--platform <platform>', 'Target platform', {\n      default: 'node',\n    })\n    .option('--loader <ext=loader>', 'Specify the loader for a file extension')\n    .option('--tsconfig <filename>', 'Use a custom tsconfig')\n    .option('--config <filename>', 'Use a custom config file')\n    .option('--no-config', 'Disable config file')\n    .option('--shims', 'Enable cjs and esm shims')\n    .option('--inject-style', 'Inject style tag to document head')\n    .option(\n      '--treeshake [strategy]',\n      'Using Rollup for treeshaking instead, \"recommended\" or \"smallest\" or \"safest\"',\n    )\n    .option('--publicDir [dir]', 'Copy public directory to output directory')\n    .option(\n      '--killSignal <signal>',\n      'Signal to kill child process, \"SIGTERM\" or \"SIGKILL\"',\n    )\n    .option('--cjsInterop', 'Enable cjs interop')\n    .action(async (files: string[], flags) => {\n      const { build } = await import('.')\n      Object.assign(options, {\n        ...flags,\n      })\n      if (!options.entry && files.length > 0) {\n        options.entry = files.map(slash)\n      }\n      if (flags.format) {\n        const format = ensureArray(flags.format) as Format[]\n        options.format = format\n      }\n      if (flags.external) {\n        const external = ensureArray(flags.external)\n        options.external = external\n      }\n      if (flags.target) {\n        options.target = flags.target.includes(',')\n          ? flags.target.split(',')\n          : flags.target\n      }\n      if (flags.dts || flags.dtsResolve || flags.dtsOnly) {\n        options.dts = {}\n        if (typeof flags.dts === 'string') {\n          options.dts.entry = flags.dts\n        }\n        if (flags.dtsResolve) {\n          options.dts.resolve = flags.dtsResolve\n        }\n        if (flags.dtsOnly) {\n          options.dts.only = true\n        }\n      }\n      if (flags.inject) {\n        const inject = ensureArray(flags.inject)\n        options.inject = inject\n      }\n      if (flags.define) {\n        const define: Record<string, string> = flatten(flags.define)\n        options.define = define\n      }\n      if (flags.loader) {\n        const loader = ensureArray(flags.loader)\n        options.loader = loader.reduce((result, item) => {\n          const parts = item.split('=')\n          return {\n            ...result,\n            [parts[0]]: parts[1],\n          }\n        }, {})\n      }\n      await build(options)\n    })\n\n  cli.help()\n\n  cli.version(version)\n\n  cli.parse(process.argv, { run: false })\n  await cli.runMatchedCommand()\n}\n",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project function reference, cac",
      "display": "cli-main.ts · main()",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project repository, cac",
      "display": "egoist/tsup",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project stars, egoist/tsup",
      "display": "11.3K",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project push date, egoist/tsup",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F78": {
      "label": "Library name, clipanion",
      "display": "Clipanion",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Monthly downloads, clipanion",
      "display": "24.2M",
      "asOf": "2026-11-15"
    },
    "F80": {
      "label": "License, clipanion",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Package release, clipanion",
      "display": "4.0.0-rc.4",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Undated package release, clipanion",
      "display": "v4.0.0-rc.4",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Repository stars, clipanion",
      "display": "1.3K",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Subcommands, clipanion",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Required options, clipanion",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Async actions, clipanion",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "TypeScript types, clipanion",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Install, clipanion",
      "display": "npm install clipanion",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "What it does, clipanion",
      "display": "Defines typed command classes with inferred options and explicit command paths.",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths lead, clipanion",
      "display": "Infers types from command properties",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths, clipanion",
      "display": "Declare options as class properties with inferred types.",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths lead, clipanion",
      "display": "Supports aliases through command paths",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "strengths, clipanion",
      "display": "Give a command multiple paths to expose aliases.",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations lead, clipanion",
      "display": "Numeric strings stay strings",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations, clipanion",
      "display": "Add Typanion validators when options need numeric conversion.",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "limitations lead, clipanion",
      "display": "Ambiguous command paths raise errors",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "limitations, clipanion",
      "display": "Distinguish overlapping commands with paths or unique options.",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Quickstart, clipanion",
      "display": "import {Command, Option, runExit} from 'clipanion';\n\nrunExit([\n  class AddCommand extends Command {\n    static paths = [[`add`]];\n\n    name = Option.String();\n\n    async execute() {\n      this.context.stdout.write(`Adding ${this.name}!\\n`);\n    }\n  },\n\n  class RemoveCommand extends Command {\n    static paths = [[`remove`]];\n\n    name = Option.String();\n\n    async execute() {\n      this.context.stdout.write(`Removing ${this.name}!\\n`);\n    }\n  },\n]);\n",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Project function, clipanion",
      "display": "function getBaseCli({cwd, pluginConfiguration}: {cwd: PortablePath, pluginConfiguration: PluginConfiguration}) {\n  const cli = new Cli<CommandContext>({\n    binaryLabel: `Yarn Package Manager`,\n    binaryName: `yarn`,\n    binaryVersion: YarnVersion ?? `<unknown>`,\n  });\n\n  return Object.assign(cli, {\n    defaultContext: {\n      ...Cli.defaultContext,\n      cwd,\n      plugins: pluginConfiguration,\n      quiet: false,\n      stdin: process.stdin,\n      stdout: process.stdout,\n      stderr: process.stderr,\n    },\n  });\n}\n",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Project function reference, clipanion",
      "display": "lib.ts · getBaseCli()",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Project repository, clipanion",
      "display": "yarnpkg/berry",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Project stars, yarnpkg/berry",
      "display": "8.1K",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Project push date, yarnpkg/berry",
      "display": "Nov 2026",
      "asOf": "2026-11-11"
    },
    "F104": {
      "label": "Developer need",
      "display": "Building nested command trees",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Why choose commander",
      "display": "command-level options and handlers",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need in introduction",
      "display": "building nested command trees",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "When to consider clipanion",
      "display": "command classes and inferred property types fit better",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need",
      "display": "Transforming arguments during parsing",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Why choose yargs",
      "display": "custom value coercion",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Developer need in introduction",
      "display": "transforming arguments during parsing",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "When to consider commander",
      "display": "command tree construction is the primary concern",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Developer need",
      "display": "Grouping dotted option names",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Why choose cac",
      "display": "nested option objects",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "Developer need in introduction",
      "display": "grouping dotted option names",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "When to consider yargs",
      "display": "option conversion needs explicit custom transforms",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "Developer need",
      "display": "Declaring typed command classes",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "Why choose clipanion",
      "display": "inferred option property types",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "Developer need in introduction",
      "display": "declaring typed command classes",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "When to consider commander",
      "display": "callback-defined command trees fit better",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "Page introduction",
      "display": "JavaScript CLI libraries let developers build command-line interfaces.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Does a required option value mean the flag itself is mandatory?",
      "display": "CAC angle brackets require a value after a supplied flag; that syntax does not establish mandatory flag presence.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Does a required option value mean the flag itself is mandatory?",
      "display": "Commander explicitly provides requiredOption for mandatory named options.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: How does Commander wait for asynchronous actions?",
      "display": "Use parseAsync instead of parse when an action handler is asynchronous.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: How does yargs expose asynchronous parsing?",
      "display": "parseAsync always returns a promise, including when asynchronous builders, handlers, or middleware are present.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: How should CAC asynchronous action errors be awaited?",
      "display": "Parse without running the command, then await runMatchedCommand when its action returns a Promise.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Does CAC validate options on a command without an action?",
      "display": "An action-based command without an action does not validate its options.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: How are dotted CAC options represented?",
      "display": "Dot-nested options are merged into one option object.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Can Commander accept unknown options?",
      "display": "allowUnknownOption suppresses the unknown-option check.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: How can yargs preserve leading zeros in identifiers?",
      "display": "Declare the relevant key with string to prevent numeric or boolean interpretation.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: Does yargs directory recursion create nested commands automatically?",
      "display": "commandDir recurse discovers files as a flattened, non-hierarchical list.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: Does basic Commander TypeScript support infer every option type?",
      "display": "Its optional extra-typings project adds inference for opts results and action parameters.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: Does Clipanion turn numeric-looking strings into numbers automatically?",
      "display": "It leaves numeric-looking string values as strings; explicit validators provide conversion.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "FAQ: What happens when Clipanion command paths are ambiguous?",
      "display": "Overlapping commands need distinguishing options or paths; otherwise invocation raises AmbiguousSyntaxError.",
      "asOf": "2026-11-17"
    },
    "F134": {
      "label": "Library name, commander",
      "display": "Commander",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Monthly downloads, commander",
      "display": "2.9B",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "License, commander",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Package release, commander",
      "display": "15.1.0",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Package release date, commander",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Install, commander",
      "display": "npm install commander@15.1.0",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Quickstart, commander",
      "display": "import { Command } from \"commander\";\nconst cli = new Command();\ncli.option(\"--name <name>\").parse([\"node\", \"hello\", \"--name\", \"Ada\"]);\nconsole.log(cli.opts().name);\n",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Repository stars, commander",
      "display": "28.5K",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Command-specific schemas, commander",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Async handler result, commander",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Command architecture, commander",
      "display": "Fluent command trees, generated option/help handling, and explicit parseAsync for asynchronous Node CLI actions.",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Runtime and first call, commander",
      "display": "Supported Node.js ESM host. Inline argv contains the normal node/script prefix; a real executable would pass process.argv. Install selected15.1.0, not the stale15.0.0 latest-endpoint snapshot.",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Library name, yargs",
      "display": "yargs",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Monthly downloads, yargs",
      "display": "1.5B",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "License, yargs",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Package release, yargs",
      "display": "18.2.0",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Package release date, yargs",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Install, yargs",
      "display": "npm install yargs@18.2.0",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Quickstart, yargs",
      "display": "import yargs from \"yargs\";\nconst argv = yargs([\"--name\", \"Ada\"]).option(\"name\", { type: \"string\" }).parseSync();\nconsole.log(argv.name);\n",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Repository stars, yargs",
      "display": "11.5K",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Command-specific schemas, yargs",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Async handler result, yargs",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Command architecture, yargs",
      "display": "Declarative option schemas, coercion, demand/strict validation, and command discovery/recommendations with async parsing.",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Runtime and first call, yargs",
      "display": "Node.js version supported by selected yargs18, ESM entry. Inline arguments exclude the node/script prefix. parseSync is suitable because this basic schema has no asynchronous handlers/coercions.",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Project function, yargs",
      "display": "export function lernaCLI(argv?: string | readonly string[], cwd?: string) {\n  const cli = yargs(argv, cwd);\n\n  return globalOptions(cli)\n    .usage(\"Usage: $0 <command> [options]\")\n    .demandCommand(1, \"A command is required. Pass --help to see all available commands and options.\")\n    .recommendCommands()\n    .strict()\n    .fail((msg: string, err: any) => {\n      // certain yargs validations throw strings :P\n      const actual = err || new Error(msg);\n\n      // ValidationErrors are already logged, as are package errors\n      if (actual.name !== \"ValidationError\" && !actual.pkg) {\n        // the recommendCommands() message is too terse\n        if (/Did you mean/.test(actual.message)) {\n          // TODO: refactor to address type issues\n          // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n          // @ts-ignore\n          log.error(\"lerna\", `Unknown command \"${cli.parsed.argv._[0]}\"`);\n        }\n\n        log.error(\"lerna\", actual.message);\n      }\n\n      // exit non-zero so the CLI can be usefully chained\n      cli.exit(actual.exitCode > 0 ? actual.exitCode : 1, actual);\n    })\n    .alias(\"h\", \"help\")\n    .alias(\"v\", \"version\")\n    .wrap(cli.terminalWidth()).epilogue(dedent`\n      When a command fails, all logs are written to lerna-debug.log in the current working directory.\n\n      For more information, check out the docs at https://lerna.js.org/docs/introduction\n    `);\n}\n",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Project source file, yargs",
      "display": "libs/core/src/lib/cli.ts",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Project full_name, yargs",
      "display": "lerna/lerna",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Project stargazers_count, yargs",
      "display": "36.0K",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Library name, argparse",
      "display": "argparse",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Monthly downloads, argparse",
      "display": "1.4B",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "License, argparse",
      "display": "PSF-2.0",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Package release, argparse",
      "display": "3.0.4",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Package release date, argparse",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Install, argparse",
      "display": "npm install argparse@3.0.4",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Quickstart, argparse",
      "display": "const { ArgumentParser } = require(\"argparse\");\nconst parser = new ArgumentParser({ description: \"Greeting input\" });\nparser.add_argument(\"--name\");\nconsole.log(parser.parse_args([\"--name\", \"Ada\"]).name);\n",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Official description, argparse",
      "display": "CLI arguments parser. Native port of python's argparse.",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Quickstart source file, argparse",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Repository stars, argparse",
      "display": "516",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Command-specific schemas, argparse",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Async handler result, argparse",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Command architecture, argparse",
      "display": "Python-argparse-style parser/action schemas and nested subparsers in Node; parsing returns Namespace and application code performs its work.",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Runtime and first call, argparse",
      "display": "Supported Node.js CommonJS file, e.g. hello.cjs. Explicit argument array excludes node/script prefix. This is nodeca/argparse, not a Python import or unrelated argument parser; snake_case API matches current3.",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Project function, argparse",
      "display": "function (N) {\n  return Promise.resolve().then(() => {\n    // main parser instance\n    let argparser = new ArgumentParser({\n      add_help: true,\n      epilog:   'See \\'%(prog)s <command> --help\\' for ' +\n                'more information on specific command.'\n    });\n\n    // sub-parser for commands\n    let cmdArgparsers = argparser.add_subparsers({\n      title:    'Known commands',\n      metavar:  '<command>',\n      dest:     'command'\n    });\n\n    // collect cli scripts\n\n    let commands = {};\n\n    N.apps.forEach(app => {\n      let rootDir = path.join(app.root, 'cli');\n\n      glob('**/*.js', {\n        cwd: rootDir\n      })\n      .filter(name => !/^[._]|\\\\[._]|\\/[_.]/.test(name))\n      .forEach(name => {\n        let cli = require(path.join(rootDir, name));\n        let cmd = cli.commandName || path.parse(name).name;\n\n        let subArgparser = cmdArgparsers.add_parser(cmd, cli.parserParameters || {});\n        let args = cli.commandLineArguments || [];\n\n        args.forEach(item => subArgparser.add_argument(...item.args, item.options || {}));\n\n        // store command\n        commands[cmd] = cli;\n      });\n    });\n\n    if (Object.keys(commands).length === 0) {\n      throw new Error(\"Can't find available CLI commands. Please, check config files.\");\n    }\n\n    // by default (no params) - run server\n    if (N.args.length === 0 && commands.server) {\n      N.args.unshift('server');\n    }\n\n    let args = argparser.parse_args(N.args);\n\n    // set process title\n    process.title = 'nodeca-' + args.command;\n\n    return commands[args.command].run(N, args);\n  });\n}\n",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Project source file, argparse",
      "display": "lib/system/runner/exec_cli.js",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Project full_name, argparse",
      "display": "fontello/fontello",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Project stargazers_count, argparse",
      "display": "7.1K",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Library name, cac",
      "display": "CAC",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Monthly downloads, cac",
      "display": "265.6M",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "License, cac",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Package release, cac",
      "display": "7.1.0",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Package release date, cac",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Install, cac",
      "display": "npm install cac@7.1.0",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Quickstart, cac",
      "display": "import { cac } from \"cac\";\nconst cli = cac(\"hello\");\nconst parsed = cli.option(\"--name <name>\", \"Name\").parse([\"node\", \"hello\", \"--name\", \"Ada\"]);\nconsole.log(parsed.options.name);\n",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Repository stars, cac",
      "display": "3.1K",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Command-specific schemas, cac",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Async handler result, cac",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Command architecture, cac",
      "display": "Compact TypeScript-friendly command/option definitions, dotted option names, and a documented separate awaitable command-execution path.",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Runtime and first call, cac",
      "display": "Supported Node.js ESM host or compatible bundler. Explicit argv includes node/script prefix. Angle brackets require a value only when the flag is supplied; they do not establish mandatory flag presence.",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Project function, cac",
      "display": "export async function main(options: Options = {}) {\n  const cli = cac('tsup')\n\n  cli\n    .command('[...files]', 'Bundle files', {\n      ignoreOptionDefaultValue: true,\n    })\n    .option('--entry.* <file>', 'Use a key-value pair as entry files')\n    .option('-d, --out-dir <dir>', 'Output directory', { default: 'dist' })\n    .option('--format <format>', 'Bundle format, \"cjs\", \"iife\", \"esm\"', {\n      default: 'cjs',\n    })\n    .option('--minify [terser]', 'Minify bundle')\n    .option('--minify-whitespace', 'Minify whitespace')\n    .option('--minify-identifiers', 'Minify identifiers')\n    .option('--minify-syntax', 'Minify syntax')\n    .option(\n      '--keep-names',\n      'Keep original function and class names in minified code',\n    )\n    .option('--target <target>', 'Bundle target, \"es20XX\" or \"esnext\"', {\n      default: 'es2017',\n    })\n    .option(\n      '--legacy-output',\n      'Output different formats to different folder instead of using different extensions',\n    )\n    .option('--dts [entry]', 'Generate declaration file')\n    .option('--dts-resolve', 'Resolve externals types used for d.ts files')\n    .option('--dts-only', 'Emit declaration files only')\n    .option(\n      '--experimental-dts [entry]',\n      'Generate declaration file (experimental)',\n    )\n    .option(\n      '--sourcemap [inline]',\n      'Generate external sourcemap, or inline source: --sourcemap inline',\n    )\n    .option(\n      '--watch [path]',\n      'Watch mode, if path is not specified, it watches the current folder \".\". Repeat \"--watch\" for more than one path',\n    )\n    .option('--ignore-watch <path>', 'Ignore custom paths in watch mode')\n    .option(\n      '--onSuccess <command>',\n      'Execute command after successful build, specially useful for watch mode',\n    )\n    .option('--env.* <value>', 'Define compile-time env variables')\n    .option(\n      '--inject <file>',\n      'Replace a global variable with an import from another file',\n    )\n    .option('--define.* <value>', 'Define compile-time constants')\n    .option(\n      '--external <name>',\n      'Mark specific packages / package.json (dependencies and peerDependencies) as external',\n    )\n    .option('--global-name <name>', 'Global variable name for iife format')\n    .option('--jsxFactory <jsxFactory>', 'Name of JSX factory function', {\n      default: 'React.createElement',\n    })\n    .option('--jsxFragment <jsxFragment>', 'Name of JSX fragment function', {\n      default: 'React.Fragment',\n    })\n    .option('--replaceNodeEnv', 'Replace process.env.NODE_ENV')\n    .option('--no-splitting', 'Disable code splitting')\n    .option('--clean', 'Clean output directory')\n    .option(\n      '--silent',\n      'Suppress non-error logs (excluding \"onSuccess\" process output)',\n    )\n    .option('--pure <express>', 'Mark specific expressions as pure')\n    .option('--metafile', 'Emit esbuild metafile (a JSON file)')\n    .option('--platform <platform>', 'Target platform', {\n      default: 'node',\n    })\n    .option('--loader <ext=loader>', 'Specify the loader for a file extension')\n    .option('--tsconfig <filename>', 'Use a custom tsconfig')\n    .option('--config <filename>', 'Use a custom config file')\n    .option('--no-config', 'Disable config file')\n    .option('--shims', 'Enable cjs and esm shims')\n    .option('--inject-style', 'Inject style tag to document head')\n    .option(\n      '--treeshake [strategy]',\n      'Using Rollup for treeshaking instead, \"recommended\" or \"smallest\" or \"safest\"',\n    )\n    .option('--publicDir [dir]', 'Copy public directory to output directory')\n    .option(\n      '--killSignal <signal>',\n      'Signal to kill child process, \"SIGTERM\" or \"SIGKILL\"',\n    )\n    .option('--cjsInterop', 'Enable cjs interop')\n    .action(async (files: string[], flags) => {\n      const { build } = await import('.')\n      Object.assign(options, {\n        ...flags,\n      })\n      if (!options.entry && files.length > 0) {\n        options.entry = files.map(slash)\n      }\n      if (flags.format) {\n        const format = ensureArray(flags.format) as Format[]\n        options.format = format\n      }\n      if (flags.external) {\n        const external = ensureArray(flags.external)\n        options.external = external\n      }\n      if (flags.target) {\n        options.target = flags.target.includes(',')\n          ? flags.target.split(',')\n          : flags.target\n      }\n      if (flags.dts || flags.dtsResolve || flags.dtsOnly) {\n        options.dts = {}\n        if (typeof flags.dts === 'string') {\n          options.dts.entry = flags.dts\n        }\n        if (flags.dtsResolve) {\n          options.dts.resolve = flags.dtsResolve\n        }\n        if (flags.dtsOnly) {\n          options.dts.only = true\n        }\n      }\n      if (flags.inject) {\n        const inject = ensureArray(flags.inject)\n        options.inject = inject\n      }\n      if (flags.define) {\n        const define: Record<string, string> = flatten(flags.define)\n        options.define = define\n      }\n      if (flags.loader) {\n        const loader = ensureArray(flags.loader)\n        options.loader = loader.reduce((result, item) => {\n          const parts = item.split('=')\n          return {\n            ...result,\n            [parts[0]]: parts[1],\n          }\n        }, {})\n      }\n      await build(options)\n    })\n\n  cli.help()\n\n  cli.version(version)\n\n  cli.parse(process.argv, { run: false })\n  await cli.runMatchedCommand()\n}\n",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Project source file, cac",
      "display": "src/cli-main.ts",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Project full_name, cac",
      "display": "egoist/tsup",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Project stargazers_count, cac",
      "display": "11.3K",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Library name, meow",
      "display": "Meow",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Monthly downloads, meow",
      "display": "193.8M",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "License, meow",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Package release, meow",
      "display": "14.1.0",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Package release date, meow",
      "display": "Feb 2026",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Install, meow",
      "display": "npm install meow@14.1.0",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Quickstart, meow",
      "display": "import meow from \"meow\";\nconst cli = meow(\"Usage: hello --name <name>\", {\n  importMeta: import.meta,\n  argv: [\"--name\", \"Ada\"],\n  flags: { name: { type: \"string\" } },\n});\nconsole.log(cli.flags.name);\n",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Official description, meow",
      "display": "CLI app helper",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Quickstart source file, meow",
      "display": "readme.md",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Repository stars, meow",
      "display": "3.7K",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Command-specific schemas, meow",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Async handler result, meow",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Command architecture, meow",
      "display": "Small ESM CLI helper with authored usage text, typed flags, conditional isRequired, and command-name validation/passthrough; handlers remain application code.",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Runtime and first call, meow",
      "display": "Supported Node.js ESM project with package.json metadata. importMeta is required; inline argv omits node/script prefix. Meow returns parsed inputs/flags; application command handlers are a separate concern.",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Project function, meow",
      "display": "export function buildCLI(argv) {\n\treturn meow(helpText, {\n\t\tautoHelp: false,\n\t\tautoVersion: false,\n\t\targv,\n\n\t\t// NOTE: `meow()` infers flag types when passing a flag object with inline.\n\t\t// However, `checkInvalidCLIOptions()` also needs this flag object.\n\t\t// So, unfortunately, the return value type inference by `meow()` is unavailable here.\n\t\t//\n\t\t// @ts-expect-error -- TS2322: Type '{ allowEmptyInput: {...} }' is not assignable to type 'AnyFlags'.\n\t\tflags,\n\n\t\t// NOTE: We must enable `allowUnknownFlags` because meow exits with `2` if `allowUnknownFlags` is disabled.\n\t\t// Instead, we use our different exit code with `checkInvalidCLIOptions()`.\n\t\t// See also https://github.com/sindresorhus/meow/blob/v12.0.1/source/validate.js#L75\n\t\tallowUnknownFlags: true,\n\n\t\t// NOTE: If CLI flags are unspecified (e.g., `--cache` nor `--no-cache`), we want to fall back to config properties (e.g., `cache`).\n\t\tbooleanDefault: undefined,\n\n\t\timportMeta: import.meta,\n\t});\n}\n",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Project source file, meow",
      "display": "lib/cli.mjs",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Project full_name, meow",
      "display": "stylelint/stylelint",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Project stargazers_count, meow",
      "display": "11.6K",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Library name, citty",
      "display": "Citty",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Monthly downloads, citty",
      "display": "190.8M",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "License, citty",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Package release, citty",
      "display": "0.2.2",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Package release date, citty",
      "display": "Apr 2026",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Install, citty",
      "display": "npm install citty@0.2.2",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Quickstart, citty",
      "display": "import { defineCommand, runMain } from \"citty\";\nconst main = defineCommand({\n  meta: { name: \"hello\" },\n  args: { name: { type: \"string\", default: \"Ada\" } },\n  run({ args }) { console.log(`Hello ${args.name}`); },\n});\nawait runMain(main);\n",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Official description, citty",
      "display": "Elegant CLI Builder",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Quickstart source file, citty",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Repository stars, citty",
      "display": "1.4K",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Command-specific schemas, citty",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Async handler result, citty",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Command architecture, citty",
      "display": "Declarative command objects with lazy subcommands, setup/run/cleanup hooks, and reusable usage rendering.",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Runtime and first call, citty",
      "display": "Supported Node.js ESM host with top-level await. The provided default is sufficient for a first run; CLI input is read by runMain. No external command module or fixture is hidden.",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Project function, citty",
      "display": "export async function showUsage(\n  cmd: CommandDef,\n  parent?: CommandDef,\n  print: (text: string) => void = console.log,\n): Promise<void> {\n  if (!parent) {\n    print(renderRootHelp() + \"\\n\");\n    return;\n  }\n\n  const meta = await (typeof cmd.meta === \"function\" ? cmd.meta() : cmd.meta);\n  const usage = await renderUsage(cmd, parent);\n  print((isColorSupported ? usage : stripVTControlCharacters(usage)) + \"\\n\");\n\n  const name = meta?.name;\n  if (name) {\n    const parentMeta = await (typeof parent.meta === \"function\" ? parent.meta() : parent.meta);\n    const parentName = parentMeta?.name;\n    const examples = STATIC_EXAMPLES[name] ?? (await loadExamples(name, parentName));\n    if (examples) {\n      print(formatExamples(examples) + \"\\n\");\n    }\n  }\n}\n",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Project source file, citty",
      "display": "packages/cli/src/help.ts",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Project full_name, citty",
      "display": "heygen-com/hyperframes",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Project stargazers_count, citty",
      "display": "86.9K",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Library name, @oclif/core",
      "display": "@oclif/core",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Monthly downloads, @oclif/core",
      "display": "63.4M",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "License, @oclif/core",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Package release, @oclif/core",
      "display": "5.1.12",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Package release date, @oclif/core",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Install, @oclif/core",
      "display": "npm install @oclif/core@5.1.12",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Quickstart, @oclif/core",
      "display": "import { Args, Parser } from \"@oclif/core\";\nconst { args } = await Parser.parse([\"Ada\"], {\n  args: { name: Args.string({ required: true }) },\n});\nconsole.log(args.name);\n",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Official description, @oclif/core",
      "display": "base library for oclif CLIs",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Quickstart source file, @oclif/core",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Repository stars, @oclif/core",
      "display": "321",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Command-specific schemas, @oclif/core",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Async handler result, @oclif/core",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Command architecture, @oclif/core",
      "display": "Class-based command applications with configurable project command discovery and plugins; also exposes a standalone argument parser without project help/version.",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Runtime and first call, @oclif/core",
      "display": "Supported Node.js ESM/CommonJS-interoperable host with top-level await. This is the official standalone parser interface, supplied complete inline input/schema. Built-in help/version require a full oclif project and are not claimed for this bare parser call.",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Project function, @oclif/core",
      "display": "export async function runOclifCommandById(\n  commandId: string,\n  args: string[],\n  opts: OclifCommandRunOptions,\n): Promise<void> {\n  const config = await OclifConfig.load(opts.rootDir);\n  applyBrandedBin(config, opts.publicSandboxName);\n  const errorLine = opts.error ?? console.error;\n  const exit = opts.exit ?? ((code: number) => process.exit(code));\n  const originalArgv = process.argv;\n  const nativeArgv = [...commandId.split(\":\"), ...args];\n  process.argv = [originalArgv[0] ?? process.execPath, originalArgv[1] ?? CLI_NAME, ...nativeArgv];\n\n  try {\n    await config.runCommand(commandId, args);\n  } catch (error) {\n    const exitCode = getOclifExitCode(error);\n    if (exitCode === 0) {\n      // Only oclif's own ExitError(0) is an intentional graceful exit (e.g.\n      // Command.exit(0) / --help — its message is the synthetic \"EEXIT: 0\",\n      // which must stay silent). Keep that path at exit 0.\n      if (isOclifExitError(error)) {\n        process.exitCode = 0;\n        return;\n      }\n      // #5974: any OTHER error that merely happens to carry oclif.exit === 0\n      // is a genuine failure that bubbled out of a command's run(). #2666\n      // stopped it being silently swallowed (exit 0 + empty output); here we\n      // also refuse to report success for it — surface its message AND exit\n      // non-zero so `$?` stays scriptable. Fall back to a generic line if\n      // formatOclifError() returns empty so a blank message never reintroduces\n      // the silent path.\n      const message = formatOclifError(error) || \"Command exited with no output.\";\n      errorLine(`  ${message}`);\n      process.exitCode = 1;\n      return;\n    }\n\n    if (isOclifParseError(error)) {\n      errorLine(`  ${formatOclifError(error)}`);\n      exit(exitCode ?? 1);\n    }\n\n    // NCQ #3180: oclif's Command.exit(code) throws an ExitError carrying\n    // `oclif.exit`. Treat that as a graceful exit with the requested code\n    // so we don't leak a raw `at Object.exit (... /@oclif/core/...)` stack\n    // trace to the user. Other oclif error classes (e.g. RequiredArgsError)\n    // are left to bubble up so oclif's own handler still prints them.\n    if (isOclifExitError(error) && typeof exitCode === \"number\") {\n      exit(exitCode);\n    }\n\n    throw error;\n  } finally {\n    process.argv = originalArgv;\n  }\n}\n",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Project source file, @oclif/core",
      "display": "src/lib/cli/oclif-runner.ts",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Project full_name, @oclif/core",
      "display": "NVIDIA/NemoClaw",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Project stargazers_count, @oclif/core",
      "display": "23.1K",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Library name, sade",
      "display": "Sade",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Monthly downloads, sade",
      "display": "57.5M",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "License, sade",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Package release, sade",
      "display": "1.8.1",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Package release date, sade",
      "display": "Jan 2022",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Install, sade",
      "display": "npm install sade@1.8.1",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Quickstart, sade",
      "display": "import sade from \"sade\";\nsade(\"hello <name>\")\n  .action(name => console.log(`Hello ${name}`))\n  .parse([\"node\", \"hello\", \"Ada\"]);\n",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Official description, sade",
      "display": "Smooth (CLI) operator 🎶",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Quickstart source file, sade",
      "display": "readme.md",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Repository stars, sade",
      "display": "1.1K",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Command-specific schemas, sade",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Async handler result, sade",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Command architecture, sade",
      "display": "Compact fluent command definitions with generated help, defaults, aliases, and positional validation; parse returns the handler result for caller-controlled awaiting.",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Runtime and first call, sade",
      "display": "Supported Node.js ESM/CommonJS-interoperable host. Positional argument in the program signature selects single-command mode. Explicit argv includes node/script prefix; no callback or build process was executed during research.",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Project function, sade",
      "display": "handler => {\n\tconst ENABLE_MODERN = process.env.MICROBUNDLE_MODERN !== 'false';\n\n\tconst DEFAULT_FORMATS = ENABLE_MODERN ? 'modern,esm,cjs,umd' : 'esm,cjs,umd';\n\n\tconst cmd = type => (str, opts) => {\n\t\topts.watch = opts.watch || type === 'watch';\n\n\t\topts.entries = toArray(str || opts.entry).concat(opts._);\n\n\t\tif (typeof opts.compress !== 'undefined') {\n\t\t\t// Convert `--compress true/false/1/0` to booleans:\n\t\t\tif (typeof opts.compress !== 'boolean') {\n\t\t\t\topts.compress = opts.compress !== 'false' && opts.compress !== '0';\n\t\t\t}\n\t\t} else {\n\t\t\t// the default compress value is `true` for web, `false` for Node:\n\t\t\topts.compress = opts.target !== 'node';\n\t\t}\n\n\t\thandler(opts);\n\t};\n\n\tlet prog = sade('microbundle');\n\n\tprog\n\t\t.version(version)\n\t\t.option('--entry, -i', 'Entry module(s)')\n\t\t.option('--output, -o', 'Directory to place build files into')\n\t\t.option(\n\t\t\t'--format, -f',\n\t\t\t`Only build specified formats (any of ${DEFAULT_FORMATS} or iife)`,\n\t\t\tDEFAULT_FORMATS,\n\t\t)\n\t\t.option('--watch, -w', 'Rebuilds on any change', false)\n\t\t.option(\n\t\t\t'--pkg-main',\n\t\t\t'Outputs files analog to package.json main entries',\n\t\t\ttrue,\n\t\t)\n\t\t.option('--target', 'Specify your target environment (node or web)', 'web')\n\t\t.option('--external', `Specify external dependencies, or 'none'`)\n\t\t.option('--globals', `Specify globals dependencies, or 'none'`)\n\t\t.example('--globals react=React,jquery=$')\n\t\t.option('--define', 'Replace constants with hard-coded values')\n\t\t.example('--define API_KEY=1234')\n\t\t.option('--alias', `Map imports to different modules`)\n\t\t.example('--alias react=preact')\n\t\t.option(\n\t\t\t'--compress',\n\t\t\t'Compress output using Terser (default true when --target is web, false when --target is node)',\n\t\t)\n\t\t.example('build --target web --no-compress')\n\t\t.option('--strict', 'Enforce undefined global context and add \"use strict\"')\n\t\t.option('--name', 'Specify name exposed in UMD builds')\n\t\t.option('--cwd', 'Use an alternative working directory', '.')\n\t\t.option('--sourcemap', 'Generate source map')\n\t\t.example(\"watch --no-sourcemap # don't generate sourcemaps\")\n\t\t.option('--raw', 'Show raw byte size', false)\n\t\t.option('--jsx', 'A custom JSX pragma like React.createElement', 'h')\n\t\t.option(\n\t\t\t'--jsxFragment',\n\t\t\t'A custom JSX fragment pragma like React.Fragment',\n\t\t\t'Fragment',\n\t\t)\n\t\t.option(\n\t\t\t'--jsxImportSource',\n\t\t\t'Declares the module specifier to be used for importing jsx factory functions',\n\t\t)\n\t\t.option('--tsconfig', 'Specify the path to a custom tsconfig.json')\n\t\t.example('build --tsconfig tsconfig.build.json')\n\t\t.option(\n\t\t\t'--generateTypes',\n\t\t\t'Whether or not to generate types , if `types` or `typings` is set in `package.json` then it will default to be `true`',\n\t\t)\n\t\t.option('--css', 'Where to output CSS: \"inline\" or \"external\"', 'external')\n\t\t.option(\n\t\t\t'--css-modules',\n\t\t\t'Turns on css-modules for all .css imports. Passing a string will override the scopeName. eg --css-modules=\"_[hash]\"',\n\t\t\tnull,\n\t\t)\n\t\t.option(\n\t\t\t'--workers',\n\t\t\t'Bundle module workers - see https://github.com/surma/rollup-plugin-off-main-thread#auto-bundling',\n\t\t\tfalse,\n\t\t)\n\t\t.option(\n\t\t\t'--visualize',\n\t\t\t'Generate bundle makeup visualization (stats.html)',\n\t\t\tfalse,\n\t\t);\n\n\tprog\n\t\t.command('build [...entries]', '', { default: true })\n\t\t.describe('Build once and exit')\n\t\t.action(cmd('build'));\n\n\tprog\n\t\t.command('watch [...entries]')\n\t\t.describe('Rebuilds on any change')\n\t\t.action(cmd('watch'));\n\n\t// Parse argv; add extra aliases\n\treturn argv =>\n\t\tprog.parse(argv, {\n\t\t\talias: {\n\t\t\t\to: ['output', 'd'],\n\t\t\t\ti: ['entry', 'entries', 'e'],\n\t\t\t\tw: ['watch'],\n\t\t\t},\n\t\t\tboolean: ['generateTypes'],\n\t\t});\n}\n",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Project source file, sade",
      "display": "src/prog.js",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Project full_name, sade",
      "display": "developit/microbundle",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "Project stargazers_count, sade",
      "display": "8.1K",
      "asOf": "2026-11-20"
    },
    "F268": {
      "label": "What, argparse",
      "display": "Parses command-line arguments for Node.js with subcommands, as a port of Python's argparse.",
      "asOf": "2026-11-17"
    },
    "F269": {
      "label": "Watch out lead, argparse",
      "display": "No keyword arguments",
      "asOf": "2026-11-17"
    },
    "F270": {
      "label": "Watch out body, argparse",
      "display": "Pass an options object where Python argparse takes keyword arguments.",
      "asOf": "2026-11-17"
    },
    "F271": {
      "label": "What, meow",
      "display": "Parses arguments and flags and prints the supplied help text on --help.",
      "asOf": "2026-11-17"
    },
    "F272": {
      "label": "Strength lead, meow",
      "display": "Converts flags to camelCase",
      "asOf": "2026-11-17"
    },
    "F273": {
      "label": "Strength body, meow",
      "display": "Flag names arrive as camelCase keys in the parsed result.",
      "asOf": "2026-11-17"
    },
    "F274": {
      "label": "What, citty",
      "display": "Builds command-line apps from command definitions with nested, lazily loaded subcommands.",
      "asOf": "2026-11-17"
    },
    "F275": {
      "label": "Strength lead, citty",
      "display": "Built on util.parseArgs",
      "asOf": "2026-11-17"
    },
    "F276": {
      "label": "Strength body, citty",
      "display": "Parsing runs on Node's native util.parseArgs with no dependencies.",
      "asOf": "2026-11-17"
    },
    "F277": {
      "label": "What, oclif core",
      "display": "Provides a framework for single-command and multi-command CLIs, built out of the Salesforce CLI.",
      "asOf": "2026-11-17"
    },
    "F278": {
      "label": "What, sade",
      "display": "Builds Node.js CLIs with git-like subcommands, option aliases, default values, and generated help text.",
      "asOf": "2026-11-17"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript CLI libraries Commander yargs CAC Clipanion code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
