{"id":19877117,"url":"https://github.com/yehorbk/cli-argv-parser","last_synced_at":"2025-08-03T11:09:37.583Z","repository":{"id":43999293,"uuid":"238745722","full_name":"yehorbk/cli-argv-parser","owner":"yehorbk","description":"A library that allows to parse command line arguments into hash-table or object by scheme","archived":false,"fork":false,"pushed_at":"2022-02-13T00:40:49.000Z","size":187,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-11T22:57:11.104Z","etag":null,"topics":["argument-parser","argument-parsing","arguments","cli","command-line","javascript","library","parser","parsing-library"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/yehorbk.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}},"created_at":"2020-02-06T17:31:37.000Z","updated_at":"2023-03-24T05:39:54.000Z","dependencies_parsed_at":"2022-09-08T13:12:15.035Z","dependency_job_id":null,"html_url":"https://github.com/yehorbk/cli-argv-parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yehorbk%2Fcli-argv-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yehorbk%2Fcli-argv-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yehorbk%2Fcli-argv-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yehorbk%2Fcli-argv-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yehorbk","download_url":"https://codeload.github.com/yehorbk/cli-argv-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241304295,"owners_count":19941101,"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":["argument-parser","argument-parsing","arguments","cli","command-line","javascript","library","parser","parsing-library"],"created_at":"2024-11-12T16:36:38.622Z","updated_at":"2025-03-01T01:44:39.448Z","avatar_url":"https://github.com/yehorbk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Command Line Argumets Parser\nA library that allows to parse command line arguments into hash-table or object by scheme.\n\n# Installation\nInstall library to your project:\n```\n$ npm install cli-argv-parser\n```\n\n# How to use\nYou able to put only arguments array to parser and it will be return a hash-table (key-value).\nBut if you want to parse arguments into object - use template scheme with keys and required types.\n\n## Scheme:\n```javascript\nconst scheme = {\n    file: String,\n    force: Boolean,\n    count: Number,\n};\n```\nThe template is `key`: `type`. Parser will try to convert argument into required type. By default single values will be always parsed into `Boolean` value.\n\n## Example of result:\n- Without scheme: `{ '--file': 'app.js', force: true, '--count': '20' }`\n- With scheme: `{ file: 'app.js', force: true, count: 20 }`\n\n# Author\n**Yehor Bublyk**: [GitHub](https://github.com/yehorbk) • [Twitter](https://twitter.com/yehorbk)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyehorbk%2Fcli-argv-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyehorbk%2Fcli-argv-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyehorbk%2Fcli-argv-parser/lists"}