{"id":30060249,"url":"https://github.com/tiaanduplessis/get-them-args","last_synced_at":"2025-08-08T01:43:01.600Z","repository":{"id":55044865,"uuid":"76722461","full_name":"tiaanduplessis/get-them-args","owner":"tiaanduplessis","description":"Parse argument options","archived":false,"fork":false,"pushed_at":"2020-04-22T10:37:55.000Z","size":187,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-15T15:51:50.081Z","etag":null,"topics":["arguments","parse"],"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/tiaanduplessis.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":"2016-12-17T12:18:17.000Z","updated_at":"2022-05-30T09:46:59.000Z","dependencies_parsed_at":"2022-08-14T10:00:45.206Z","dependency_job_id":null,"html_url":"https://github.com/tiaanduplessis/get-them-args","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/tiaanduplessis/get-them-args","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fget-them-args","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fget-them-args/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fget-them-args/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fget-them-args/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiaanduplessis","download_url":"https://codeload.github.com/tiaanduplessis/get-them-args/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fget-them-args/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269352281,"owners_count":24402672,"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","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["arguments","parse"],"created_at":"2025-08-08T01:42:51.509Z","updated_at":"2025-08-08T01:43:01.558Z","avatar_url":"https://github.com/tiaanduplessis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# get-them-args\n[![package version](https://img.shields.io/npm/v/get-them-args.svg?style=flat-square)](https://npmjs.org/package/get-them-args)\n[![package downloads](https://img.shields.io/npm/dm/get-them-args.svg?style=flat-square)](https://npmjs.org/package/get-them-args)\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![package license](https://img.shields.io/npm/l/get-them-args.svg?style=flat-square)](https://npmjs.org/package/get-them-args)\n[![make a pull request](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![Greenkeeper badge](https://badges.greenkeeper.io/tiaanduplessis/get-them-args.svg)](https://greenkeeper.io/)\n\n\u003e Parse argument options\n\n## Table of Contents\n\n- [About](#about)\n- [Install](#install)\n- [Usage](#usage)\n- [Contribute](#contribute)\n- [License](#License)\n\n\n## About\n\nSimple CLI argument parser hacked from [minimist](https://github.com/substack/minimist) that adds support for objects and additional initialization options.\n\n## Install\n\n```sh\n$ npm install --save get-them-args\n# Or\n$ yarn add get-them-args\n```\n\n## Usage\nTo use, provide arguments as argument:\n\n```js\nconst parse = require('get-them-args')\nconst options = {} // Options to be passed. CURRENTLY NONE AVAILABLE\n\n// $ node ./example.js --dir . --command foo\nconsole.log(parse(process.argv.slice(2) ))\n// { unknown: [], dir: '.', command: 'foo' }\n\nconsole.log(parse(process.argv))\n// { unknown: [], dir: '.', command: 'foo' }\n\nconsole.log(parse())\n// { unknown: [], dir: '.', command: 'foo' }\n\n```\n\nFor example, if the arguments provided are `--hello world --parse=all --no-drugs --make-friends -n 4 -t 5`, the function will return:\n\n```js\n{ unknown: [],\n  hello: 'world',\n  parse: 'all',\n  drugs: false,\n  'make-friends': true,\n  n: 4,\n  t: 5\n}\n\n```\n\nThere is also support for parsing objects:\n\n```sh\n\n$ node example.js --headers={\"Foo\": \"5\", \"bar\": \"6\"}\n# { unknown: [], headers: { Foo: 5, bar: 6 } }\n\n```\n\nAll unparsed arguments will end up in the `unknown` array. The following types of arguments are supported:\n\n```sh\n--key=value\n--key value\n--key # true\n--no-key # false\n-key=value\n-key value\n```\n\n## Contribute\n\n1. Fork it and create your feature branch: git checkout -b my-new-feature\n2. Commit your changes: git commit -am 'Add some feature'\n3. Push to the branch: git push origin my-new-feature \n4. Submit a pull request\n\n## License\n\nMIT\n    ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Fget-them-args","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiaanduplessis%2Fget-them-args","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Fget-them-args/lists"}