{"id":24618095,"url":"https://github.com/winkgroup/cmd","last_synced_at":"2026-04-12T19:41:59.201Z","repository":{"id":57748715,"uuid":"523315921","full_name":"WINKgroup/cmd","owner":"WINKgroup","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-18T19:38:47.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-26T04:09:47.747Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/WINKgroup.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":"2022-08-10T11:26:57.000Z","updated_at":"2023-01-11T11:48:55.000Z","dependencies_parsed_at":"2023-02-09T02:45:30.918Z","dependency_job_id":null,"html_url":"https://github.com/WINKgroup/cmd","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WINKgroup%2Fcmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WINKgroup%2Fcmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WINKgroup%2Fcmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WINKgroup%2Fcmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WINKgroup","download_url":"https://codeload.github.com/WINKgroup/cmd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244313868,"owners_count":20433011,"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":"2025-01-24T23:49:45.643Z","updated_at":"2025-12-31T00:13:12.758Z","avatar_url":"https://github.com/WINKgroup.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cmd\nHelper library to manage long running shell commands\n\n## Install\n```\nnpm install @winkgroup/cmd\n```\n\n## Usage\n```js\nimport Cmd from '@winkgroup/cmd'\n\nasync function go() {\n    const ls = await Cmd.run('ls')\n    console.log(ls)\n    process.exit()\n}\n\ngo()\n```\nthis will run *ls* command on the shell and return the output in ls variable\n\nyou can check if a command exists using exists method:\n```js\n    ...\n    const exists = Cmd.exists('ls')\n    if (exists) console.log('mongo is a command')\n        else console.error('command not found')\n```\n\n## Maintainers\n* [fairsayan](https://github.com/fairsayan)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinkgroup%2Fcmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwinkgroup%2Fcmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinkgroup%2Fcmd/lists"}