{"id":19796128,"url":"https://github.com/abbotto/shellcmd","last_synced_at":"2026-04-07T16:31:32.322Z","repository":{"id":72635397,"uuid":"106342430","full_name":"abbotto/shellcmd","owner":"abbotto","description":"Run shell commands from NodeJS","archived":false,"fork":false,"pushed_at":"2018-10-16T16:20:21.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T22:58:34.139Z","etag":null,"topics":["command-line","javascript","nodejs","script","shell","terminal","tool"],"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/abbotto.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-09T22:37:18.000Z","updated_at":"2018-10-16T16:20:22.000Z","dependencies_parsed_at":"2023-07-02T10:00:09.848Z","dependency_job_id":null,"html_url":"https://github.com/abbotto/shellcmd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abbotto/shellcmd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abbotto%2Fshellcmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abbotto%2Fshellcmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abbotto%2Fshellcmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abbotto%2Fshellcmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abbotto","download_url":"https://codeload.github.com/abbotto/shellcmd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abbotto%2Fshellcmd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31520424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["command-line","javascript","nodejs","script","shell","terminal","tool"],"created_at":"2024-11-12T07:18:32.420Z","updated_at":"2026-04-07T16:31:32.314Z","avatar_url":"https://github.com/abbotto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Run shell commands from NodeJS\n\n## Package Information\n[![NPM version](https://badge.fury.io/js/shellcmd.svg)](http://badge.fury.io/js/shellcmd)\n[![GitHub version](https://badge.fury.io/gh/abbotto%2Fshellcmd.svg)](https://badge.fury.io/gh/abbotto%2Fshellcmd)\n\n## Usage\n\trequire('shellcmd')(\n\t\t'cmd 1',\n\t\t'cmd 2',\n\t\t'cmd n',\n\t\t'...',\n\t\t{ options }\n\t\t, 1\n\t)\n\n### Force `stdout` output for errors\nWhen `1` is passed as the final argument, `stdout` will be returned instead of an object when an error is encountered.\n\n## Options [Object]\n- `cwd` [string]\n\t- Current working directory of the child process\n- `env` [object]\n\t- Environment key-value pairs\n- `encoding` [string]\n\t- Default: 'utf8'\n- `shell` [string]\n\t- Shell where the command will be executed\n\t- Default:\n\t\t- UNIX: `/bin/sh`\n\t\t- Windows: `process.env.ComSpec`\n- `timeout` [number]\n\t- Default: 0\n- `maxBuffer` [number]\n\t- Largest amount of data in bytes allowed on stdout or stderr.\n\t- If exceeded, the child process is terminated.\n\t- Default: 200*1024\n- `killSignal` [string | integer]\n\t- Default: 'SIGTERM'\n- `uid` [number]\n\t- Sets the user identity of the process.\n- `gid` [number]\n\t- Sets the group identity of the process.\n\t","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabbotto%2Fshellcmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabbotto%2Fshellcmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabbotto%2Fshellcmd/lists"}