{"id":49583215,"url":"https://github.com/plotdb/args","last_synced_at":"2026-05-03T21:07:16.244Z","repository":{"id":334139306,"uuid":"1140219960","full_name":"plotdb/args","owner":"plotdb","description":"argument parser","archived":false,"fork":false,"pushed_at":"2026-01-23T01:49:38.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-23T18:48:21.506Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"LiveScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plotdb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-23T01:32:19.000Z","updated_at":"2026-01-23T01:49:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/plotdb/args","commit_stats":null,"previous_names":["plotdb/args"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/plotdb/args","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fargs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fargs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fargs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fargs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plotdb","download_url":"https://codeload.github.com/plotdb/args/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fargs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32584736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-05-03T21:07:15.632Z","updated_at":"2026-05-03T21:07:16.234Z","avatar_url":"https://github.com/plotdb.png","language":"LiveScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @plotdb/args\n\nSimple argument parser.\n\nUsage:\n\n    require(\"@plotdb/args\")\n    result = args({\n      meta: {\n        file: {alias: \"f\", type: \"string\", desc: \"filename\"},\n        count: {alias: \"c\", type: \"number\", desc: \"loop count\"},\n        verbose: {alias: \"v\", type: \"boolean\", desc: \"verbose for debugging\"},\n      },\n      onerror: function(e) { process.exit(); }\n    });\n    opt = result.options;\n    console.log(\n      opt.file, opt.f,\n      opt.count, opt.count,\n      opt.verbose, opt.v\n    );\n\n\n## Options\n\nYou can pass meta directly to args for simplicity:\n\n    args({\n        file: {alias: \"f\", type: \"string\", desc: \"filename\"},\n        count: {alias: \"c\", type: \"number\", desc: \"loop count\"},\n        verbose: {alias: \"v\", type: \"boolean\", desc: \"verbose for debugging\"},\n    })\n\n`@plotdb/args` recognize `meta` property in the given object to determine if it's a simplified parameter. When `meta` is given, you can specify more options:\n\n    args({\n      meta: { file: {...}, count: {...}, ...}, \n      argv: ...\n      onerror: ...\n    })\n\nwhere:\n\n - `argv`: an alternative array of arguments to parse. default `process.argv` when omitted.\n - `onerror`: callback when parsing failed. silent exited (`process.exit()`) when omitted.\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplotdb%2Fargs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplotdb%2Fargs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplotdb%2Fargs/lists"}