{"id":20896202,"url":"https://github.com/waitingsong/rxrunscript","last_synced_at":"2026-04-27T01:31:00.828Z","repository":{"id":70044927,"uuid":"134954891","full_name":"waitingsong/rxrunscript","owner":"waitingsong","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-05T07:33:03.000Z","size":406,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-31T17:46:06.753Z","etag":null,"topics":["rxjs","script","spawn"],"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/waitingsong.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-05-26T11:17:27.000Z","updated_at":"2021-11-30T13:26:58.000Z","dependencies_parsed_at":"2024-03-01T08:45:37.670Z","dependency_job_id":null,"html_url":"https://github.com/waitingsong/rxrunscript","commit_stats":{"total_commits":445,"total_committers":2,"mean_commits":222.5,"dds":0.02921348314606742,"last_synced_commit":"9dd6cdfe703bf4014fa6e04d97e5549265d499be"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/waitingsong/rxrunscript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waitingsong%2Frxrunscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waitingsong%2Frxrunscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waitingsong%2Frxrunscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waitingsong%2Frxrunscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waitingsong","download_url":"https://codeload.github.com/waitingsong/rxrunscript/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waitingsong%2Frxrunscript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32319559,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"ssl_error","status_checked_at":"2026-04-26T23:26:25.802Z","response_time":129,"last_error":"SSL_read: 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":["rxjs","script","spawn"],"created_at":"2024-11-18T10:34:14.311Z","updated_at":"2026-04-27T01:31:00.802Z","avatar_url":"https://github.com/waitingsong.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RxRunScript\nRun shell script or command in Node.js child process, Output `Observable\u003cBuffer\u003e`\n\n[![Version](https://img.shields.io/npm/v/rxrunscript.svg)](https://www.npmjs.com/package/rxrunscript)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![Build Status](https://travis-ci.org/waitingsong/rxrunscript.svg?branch=master)](https://travis-ci.org/waitingsong/rxrunscript)\n[![Build status](https://ci.appveyor.com/api/projects/status/v5jt9imw2519nsax/branch/master?svg=true)](https://ci.appveyor.com/project/waitingsong/rxrunscript/branch/master)\n[![Coverage Status](https://coveralls.io/repos/github/waitingsong/rxrunscript/badge.svg?branch=master)](https://coveralls.io/github/waitingsong/rxrunscript?branch=master)\n\n\n\n\n## Installing\n```bash\n$ npm install rxrunscript\n```\n\n## Usage\n```ts\nimport { OutputRow, run, take } from 'rxrunscript'\n\nrun('openssl version')\n  .pipe(\n    take(1),  // assume all output in one buffer\n  )\n  .subscribe({\n    next: (row) =\u003e {\n      console.log(row.data.toString()), \n    },\n    error: (err) =\u003e {\n      console.error(err),\n    },\n  }) \n\n// exec shell file\nrun('./test/openssl.sh')\n  .subscribe({\n    next: (row) =\u003e console.log(buf.toString()),\n  })\n\n\nimport { reduce } from 'rxjs'\n\n// win32\nrun('tasklist')\n  .pipe(\n    reduce((acc: Buffer[], curr: OutputRow) =\u003e {\n      if (typeof curr.exitCode === 'undefined') {\n        acc.push(curr)\n      }\n      return acc\n    }, []),\n  )\n  .subscribe(\n    arr =\u003e console.log(Buffer.concat(arr).toString()),\n    err =\u003e console.error(err),\n  )\n\n// run cmd file\nrun('./test/prepare.cmd')\n  .subscribe(\n    row =\u003e console.log(row.data.toString()),\n  )\n\n```\n\n\n## License\n[MIT](LICENSE)\n\n\n### Languages\n- [English](README.md)\n- [中文](README.zh-CN.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaitingsong%2Frxrunscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaitingsong%2Frxrunscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaitingsong%2Frxrunscript/lists"}