{"id":17749423,"url":"https://github.com/oresoftware/parse-command","last_synced_at":"2025-07-19T01:03:37.967Z","repository":{"id":57319276,"uuid":"129972554","full_name":"ORESoftware/parse-command","owner":"ORESoftware","description":"Parse an arbitrary command string, reliably, using a child process.","archived":false,"fork":false,"pushed_at":"2018-05-30T04:58:19.000Z","size":7,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-30T00:02:21.922Z","etag":null,"topics":["bash","child-process","node","nodejs","npm"],"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/ORESoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-17T22:32:32.000Z","updated_at":"2023-08-27T13:38:44.000Z","dependencies_parsed_at":"2022-08-26T01:10:22.625Z","dependency_job_id":null,"html_url":"https://github.com/ORESoftware/parse-command","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ORESoftware/parse-command","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORESoftware%2Fparse-command","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORESoftware%2Fparse-command/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORESoftware%2Fparse-command/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORESoftware%2Fparse-command/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ORESoftware","download_url":"https://codeload.github.com/ORESoftware/parse-command/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORESoftware%2Fparse-command/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265866168,"owners_count":23840937,"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":["bash","child-process","node","nodejs","npm"],"created_at":"2024-10-26T11:23:14.174Z","updated_at":"2025-07-19T01:03:37.928Z","avatar_url":"https://github.com/ORESoftware.png","language":"JavaScript","readme":"\n\n# Parse a command using bash/OS\n\n### Installation\n\n```bash\n $ npm i parse-command \n```\n\n### Usage\n\n```javascript\nconst {parseCommand} = require('parse-command');\n\nparseCommand('--foo=5 --bar=\"/a file/path\" --zoom -z', function(err, val){\n   // val is parsed array\n   // val =\u003e [ '--foo=5', '--bar=/a file/path', '--zoom', '-z' ]\n});\n\n// using promises\nconst {parseCommandp} = require('parse-command');\n\nparseCommandp('--foo=5 --bar=\"/a file/path\" --zoom -z').then(function(val){\n   // val is parsed array\n   // val =\u003e [ '--foo=5', '--bar=/a file/path', '--zoom', '-z' ]\n});\n\n```\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foresoftware%2Fparse-command","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foresoftware%2Fparse-command","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foresoftware%2Fparse-command/lists"}