{"id":16890813,"url":"https://github.com/isruslan/shellby","last_synced_at":"2025-03-22T08:31:09.463Z","repository":{"id":57358258,"uuid":"20740835","full_name":"isRuslan/shellby","owner":"isRuslan","description":"Simple way to run series shell commands from node.js/io.js.","archived":false,"fork":false,"pushed_at":"2015-04-25T16:16:00.000Z","size":276,"stargazers_count":28,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T10:04:23.389Z","etag":null,"topics":["javascript","shell"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/isRuslan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-11T20:43:14.000Z","updated_at":"2020-05-19T02:53:47.000Z","dependencies_parsed_at":"2022-09-06T21:41:16.947Z","dependency_job_id":null,"html_url":"https://github.com/isRuslan/shellby","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/isRuslan%2Fshellby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isRuslan%2Fshellby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isRuslan%2Fshellby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isRuslan%2Fshellby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isRuslan","download_url":"https://codeload.github.com/isRuslan/shellby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244931482,"owners_count":20534008,"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":["javascript","shell"],"created_at":"2024-10-13T17:04:31.452Z","updated_at":"2025-03-22T08:31:09.139Z","avatar_url":"https://github.com/isRuslan.png","language":"JavaScript","readme":"# shellby [![Build Status](https://secure.travis-ci.org/isRuslan/shellby.png?branch=master)](http://travis-ci.org/isRuslan/shellby)\n\n\u003e Run single/series shell commands from node.js.\n\n## Install\n```sh\n$ npm install shellby --save\n```\n\n## Usage\n\n```javascript\nvar shellby = require('shellby');\n\nshellby.exec('mkdir hello', function (err) {\n  console.log('dir created');\n});\n\nshellby.series(['git pull', 'npm i'], function (err) {\n  console.log('done');\n});\n```\n\n## Options\n\nYou can specify an options object for each command. See [NodeJS documentation on `spawn`](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options) for what options are supported. If no options are specified, they default to `{stdio: inherit}`.\n\n```javascript\nvar shellby = require('shellby');\n\nshellby.exec('make', {env: {DEBUG: true}}, function (err) {\n  console.log('make run');\n});\n\nshellby.series([\n  'git clone https://github.com/foo/bar.git',  \n  ['npm i', {cwd: 'bar'}]\n], function (err) {\n  console.log('done');\n});\n```\n\n## Test\n```sh\nnpm test\n```\n\n## Credits\n\nYou can can run series shell commands due to this people:\n\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\u003cth align=\"left\"\u003eName\u003c/th\u003e\u003cth\u003eGitHub\u003c/th\u003e\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\u003ctd align=\"left\"\u003eRuslan Ismagilov\u003c/td\u003e\u003ctd\u003e\u003ca href=\"https://github.com/isRuslan\"\u003e@isRuslan\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd align=\"left\"\u003eJan Bölsche\u003c/td\u003e\u003ctd\u003e\u003ca href=\"https://github.com/https://github.com/regular\"\u003e@regular\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\n\n## License\nCopyright (c) 2014 Ruslan Ismagilov. Licensed under the MIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisruslan%2Fshellby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisruslan%2Fshellby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisruslan%2Fshellby/lists"}