{"id":15042477,"url":"https://github.com/oresoftware/generic-subshell","last_synced_at":"2026-01-07T02:09:29.770Z","repository":{"id":57249559,"uuid":"82421322","full_name":"ORESoftware/generic-subshell","owner":"ORESoftware","description":"Bash API and Node.js interface for running dynamic number of subshells in parallel and collecting all exit codes.","archived":false,"fork":false,"pushed_at":"2018-05-30T04:19:30.000Z","size":2828,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T10:05:05.994Z","etag":null,"topics":["bash","bash-script","bash-scripting","generic","nodejs","parallelism","shell","shell-script","subshell"],"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":"2017-02-18T22:56:57.000Z","updated_at":"2018-05-30T04:19:32.000Z","dependencies_parsed_at":"2022-08-26T12:33:12.323Z","dependency_job_id":null,"html_url":"https://github.com/ORESoftware/generic-subshell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORESoftware%2Fgeneric-subshell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORESoftware%2Fgeneric-subshell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORESoftware%2Fgeneric-subshell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ORESoftware%2Fgeneric-subshell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ORESoftware","download_url":"https://codeload.github.com/ORESoftware/generic-subshell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245832054,"owners_count":20679699,"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","bash-script","bash-scripting","generic","nodejs","parallelism","shell","shell-script","subshell"],"created_at":"2024-09-24T20:47:22.165Z","updated_at":"2026-01-07T02:09:29.685Z","avatar_url":"https://github.com/ORESoftware.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Generic-Subshell\n\nRun a dynamic number of bash commands in parallel, collect all exit codes.\n\n\n### This project essentially has two interfaces.\n\n1. You can interact with the shell script directly. Using NPM, install this project.* Then reference the script with:\n./node_modules/generic-subshell/lib/run.sh. Or just copy and paste the script in your project and make it your own :)\n\n2. There is a Node.js interface - pass the Node.js interface an array of commands, and this library will return with\na reference to the child process.\n\n```js\n\nimport * as gs from 'generic-subshell';  // using es5 it's: const gs = require('generic-subshell');\n\nconst commands = [\n  'echo \"foo\"', \n  'echo \"baz\"', \n  'echo \"bar\"'\n  ];\n\nconst k = gs.run(commands);  // returns a child process\n\nk.once('exit', function(code){\n    // if code is 0, all subshells exited with code 0\n    // if code is 1, at least one subshell exited with an non-zero code\n});\n\n```\n\n# Installation:\n\n```bash\nnpm install generic-subshell --save\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foresoftware%2Fgeneric-subshell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foresoftware%2Fgeneric-subshell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foresoftware%2Fgeneric-subshell/lists"}