{"id":16861235,"url":"https://github.com/rumpl/cli-app","last_synced_at":"2025-07-07T01:05:53.973Z","repository":{"id":7503971,"uuid":"8853840","full_name":"rumpl/cli-app","owner":"rumpl","description":"Simple command line application helper","archived":false,"fork":false,"pushed_at":"2013-03-23T09:25:22.000Z","size":102,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-27T18:18:13.939Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rumpl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-18T12:41:20.000Z","updated_at":"2013-10-16T23:12:33.000Z","dependencies_parsed_at":"2022-09-16T15:02:39.973Z","dependency_job_id":null,"html_url":"https://github.com/rumpl/cli-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rumpl/cli-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumpl%2Fcli-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumpl%2Fcli-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumpl%2Fcli-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumpl%2Fcli-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rumpl","download_url":"https://codeload.github.com/rumpl/cli-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumpl%2Fcli-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263996083,"owners_count":23541399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T14:30:36.514Z","updated_at":"2025-07-07T01:05:53.946Z","avatar_url":"https://github.com/rumpl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cli-app\r\n\r\nSimple command line application helper. Helps you define actions for specific commands.\r\n\r\n# Installation\r\n\r\n```bash\r\nnpm install cli-app\r\n```\r\n\r\n# Usage\r\n\r\n```javascript\r\nvar app = require('cli-app');\r\n\r\napp.name = 'awesome';\r\n\r\napp.command('command', 'Put some description', function() {\r\n  console.log('YAY!');\r\n});\r\n\r\napp.command('commandWithParams', 'Some other description', function(param1, param2) {\r\n  console.log('YAY too!');\r\n  console.log('Got params: ', param1, param2);\r\n});\r\n\r\napp.run();\r\n```\r\n\r\nWhen run:\r\n```\r\n$ node app.js command\r\n```\r\nYou will see `YAY!`\r\n\r\nOr:\r\n```\r\n$ node app.js commandWithParams Hello World\r\nGot params: Hello World\r\n```\r\n\r\n**Bonus: free usage!**\r\n\r\n```\r\n$ node app.js wat\r\nUndefined command: wat\r\nUsage: awesome [COMMANDS] [OPTIONS]\r\n\r\ncommand                      Put some description\r\ncommand2 [param1, param2]    Some other description\r\n```\r\n\r\n# License\r\n\r\n[MIT](http://mit-license.org/rumpl)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frumpl%2Fcli-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frumpl%2Fcli-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frumpl%2Fcli-app/lists"}