{"id":18157510,"url":"https://github.com/ubermanu/as-command","last_synced_at":"2025-04-07T02:42:41.492Z","repository":{"id":194763749,"uuid":"691527181","full_name":"ubermanu/as-command","owner":"ubermanu","description":"A command line arguments parser for AssemblyScript","archived":false,"fork":false,"pushed_at":"2024-04-15T10:49:10.000Z","size":189,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-01T12:49:41.872Z","etag":null,"topics":["args-parser","assembly-script","command"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ubermanu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-14T11:09:43.000Z","updated_at":"2023-12-18T03:06:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa365aff-26d5-4a65-9a86-d3581812d828","html_url":"https://github.com/ubermanu/as-command","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":0.1428571428571429,"last_synced_commit":"45b7388e171f1c11946a83421b53d5eb88d8c6df"},"previous_names":["ubermanu/as-command"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubermanu%2Fas-command","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubermanu%2Fas-command/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubermanu%2Fas-command/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubermanu%2Fas-command/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ubermanu","download_url":"https://codeload.github.com/ubermanu/as-command/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247584061,"owners_count":20962071,"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":["args-parser","assembly-script","command"],"created_at":"2024-11-02T06:06:27.368Z","updated_at":"2025-04-07T02:42:41.457Z","avatar_url":"https://github.com/ubermanu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# as-command\n\nA command line arguments parser for [AssemblyScript](https://www.assemblyscript.org/).\n\n## Installation\n\n```sh\nnpm install as-command --save\n```\n\n## Usage\n\n```ts\nimport command from 'as-command'\n\nconst program = command\n  .name('pizza-cli')\n  .version('4.1.79')\n  .description('Order your pizza')\n  .option('-c, --cheese', 'Add the specified type of cheese [marble]', [\n    'marble',\n  ])\n  .option('-p, --peppers', 'Add peppers')\n  .option('-t, --tomatoes', 'Add tomatoes')\n  .action((args) =\u003e {\n    console.log(`Preparing pizza with:`)\n\n    if (args.has('cheese')) {\n      console.log(`+ cheese: ${args.get('cheese').join(', ')}`)\n    }\n    if (args.has('peppers')) {\n      console.log('+ peppers')\n    }\n    if (args.has('tomatoes')) {\n      console.log('+ tomatoes')\n    }\n  })\n\nprogram.parse(process.argv)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubermanu%2Fas-command","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubermanu%2Fas-command","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubermanu%2Fas-command/lists"}