{"id":18576346,"url":"https://github.com/stbestichhh/stlib-args-parser","last_synced_at":"2025-07-08T23:33:51.382Z","repository":{"id":256202793,"uuid":"854589765","full_name":"stbestichhh/stlib-args-parser","owner":"stbestichhh","description":"CLI args parser for Node.js","archived":false,"fork":false,"pushed_at":"2024-09-09T13:02:01.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T04:03:23.521Z","etag":null,"topics":["args","args-parser","cli","cli-parser","util"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@stlib/argv","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/stbestichhh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-09T12:52:48.000Z","updated_at":"2024-09-09T13:02:49.000Z","dependencies_parsed_at":"2024-09-09T15:34:27.525Z","dependency_job_id":"3e28d7f8-b3cc-45c3-9203-d056320245ed","html_url":"https://github.com/stbestichhh/stlib-args-parser","commit_stats":null,"previous_names":["stbestichhh/stlib-args-parser"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbestichhh%2Fstlib-args-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbestichhh%2Fstlib-args-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbestichhh%2Fstlib-args-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbestichhh%2Fstlib-args-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stbestichhh","download_url":"https://codeload.github.com/stbestichhh/stlib-args-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254448632,"owners_count":22072765,"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","args-parser","cli","cli-parser","util"],"created_at":"2024-11-06T23:24:34.681Z","updated_at":"2025-05-16T01:08:06.273Z","avatar_url":"https://github.com/stbestichhh.png","language":"TypeScript","readme":"[![Node.js CI](https://github.com/stbestichhh/stlib-args-parser/actions/workflows/node.js.yml/badge.svg)](https://github.com/stbestichhh/stlib-args-parser/actions/workflows/node.js.yml)\n[![NPM Version](https://img.shields.io/npm/v/@stlib/argv)](https://www.npmjs.com/package/@stlib/argv)\n[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)\n[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)\n\n# @stlib/argv\n\n## Table of contents\n\n* [Description](#about)\n* [Getting started](#getting-started)\n  * [Instalation](#installation)\n  * [Usage](#usage)\n* [Contributing](#contributing)\n* [Changelog](#changelog)\n* [Authors](#authors)\n* [License](#license)\n\n## Getting started\n\n### Installation\n\n```shell\n$ yarn add @stlib/argv\n```\n\n\u003e [!IMPORTANT]\n\u003e **Node.js 18.x+** version must be installed in your OS.\n\n### Usage\n\nObject type for arguments\n\n```TypeScript\nOptionsType {\n  [key: string]: string;\n}\n```\n\n```TypeScript\n// Parses arhuments and return object\nfunction parseArgs(argv: string[]): OptionsType;\n\n// Object with parsed arguments\nconst options: OptionsType;\n```\n\n**Example**\n```shell\n$ yarn ts-node index.ts -a --b -c=1 --d= 2 --e=smth=3 -f 4\n```\n\n```TypeScript\nimport { options } from '@stlib/argv';\n\nconsole.log(options);\n\n// Output: { a: true, b: true, c: '1', d: '2', e: 'smth=3', f: '4' }\n```\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Changelog\n\nProject changes are writen in changelog, see the [CHANGELOG.md](CHANGELOG.md).\n\nWe use [SemVer](https://semver.org/) for versioning.\nFor the versions available, see the [tags](https://github.com/stbestichhh/stlib-args-parser/tags) on this repository.\nFor the versions supported, see the [SECURITY.md](SECURITY.md).\n\n## Authors\n\n- [@stbestichhh](https://www.github.com/stbestichhh)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstbestichhh%2Fstlib-args-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstbestichhh%2Fstlib-args-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstbestichhh%2Fstlib-args-parser/lists"}