{"id":16173154,"url":"https://github.com/joeferner/node-cmdparser","last_synced_at":"2025-03-19T00:30:46.702Z","repository":{"id":3654144,"uuid":"4722193","full_name":"joeferner/node-cmdparser","owner":"joeferner","description":"Command parser with support for completers.","archived":false,"fork":false,"pushed_at":"2023-03-22T11:32:57.000Z","size":34,"stargazers_count":3,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T18:34:20.643Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/joeferner.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}},"created_at":"2012-06-20T04:08:42.000Z","updated_at":"2021-10-04T22:33:56.000Z","dependencies_parsed_at":"2023-07-05T17:15:20.803Z","dependency_job_id":null,"html_url":"https://github.com/joeferner/node-cmdparser","commit_stats":null,"previous_names":["nearinfinity/node-cmdparser"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeferner%2Fnode-cmdparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeferner%2Fnode-cmdparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeferner%2Fnode-cmdparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeferner%2Fnode-cmdparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeferner","download_url":"https://codeload.github.com/joeferner/node-cmdparser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955757,"owners_count":20374373,"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":[],"created_at":"2024-10-10T04:06:48.751Z","updated_at":"2025-03-19T00:30:46.451Z","avatar_url":"https://github.com/joeferner.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# cmdparser\n\nCommand parser with support for completers.\n\nMade specifically to parse redis command syntax but can be used for other purposes as well.\n\n# Install\n\n```bash\n$ npm install cmdparser\n```\n\n# Example\n\n```javascript\nvar cmdparser = new CmdParser([\n  \"del \u003ckey\u003e [key ...]\",\n  \"dump \u003ckey\u003e\",\n  \"exists \u003ckey\u003e\"\n], {\n  key: function (partial) {\n    return [\"1111\", \"1112\", \"1113\"];\n  }\n});\nvar results = cmdparser.completer(\"dump 111\");\n// results = [ [\"1111\", \"1112\", \"1113\"], \"111\" ]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeferner%2Fnode-cmdparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeferner%2Fnode-cmdparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeferner%2Fnode-cmdparser/lists"}