{"id":13526774,"url":"https://github.com/node-modules/runscript","last_synced_at":"2025-06-14T03:08:07.955Z","repository":{"id":3842588,"uuid":"51086887","full_name":"node-modules/runscript","owner":"node-modules","description":"Run script easy!","archived":false,"fork":false,"pushed_at":"2024-12-10T02:21:23.000Z","size":55,"stargazers_count":41,"open_issues_count":0,"forks_count":5,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-15T07:03:46.526Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/node-modules.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-02-04T15:59:31.000Z","updated_at":"2024-12-10T02:21:25.000Z","dependencies_parsed_at":"2024-01-13T22:59:18.669Z","dependency_job_id":"cd869453-8cee-4c21-82de-11fb33b390a4","html_url":"https://github.com/node-modules/runscript","commit_stats":{"total_commits":33,"total_committers":9,"mean_commits":"3.6666666666666665","dds":0.4545454545454546,"last_synced_commit":"8bbc5475e9eafc45688525011780ec55136f9a1a"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Frunscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Frunscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Frunscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Frunscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/node-modules","download_url":"https://codeload.github.com/node-modules/runscript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246607035,"owners_count":20804508,"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":"2024-08-01T06:01:34.569Z","updated_at":"2025-04-01T08:30:18.893Z","avatar_url":"https://github.com/node-modules.png","language":"TypeScript","readme":"# runscript\n\n📢📢📢📢📢 You should use [execa](https://github.com/sindresorhus/execa) instead. 📢📢📢📢\n\n---\n\n[![NPM version][npm-image]][npm-url]\n[![Node.js CI](https://github.com/node-modules/runscript/actions/workflows/nodejs.yml/badge.svg)](https://github.com/node-modules/runscript/actions/workflows/nodejs.yml)\n[![Test coverage][codecov-image]][codecov-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/runscript.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/runscript\n[codecov-image]: https://codecov.io/github/node-modules/runscript/coverage.svg?branch=master\n[codecov-url]: https://codecov.io/github/node-modules/runscript?branch=master\n[download-image]: https://img.shields.io/npm/dm/runscript.svg?style=flat-square\n[download-url]: https://npmjs.org/package/runscript\n\nRun script easy!\n\n## Installation\n\n```bash\nnpm install runscript\n```\n\n## Quick start\n\nCommonjs\n\n```js\nconst { runScript } = require('runscript');\n\nrunScript('node -v', { stdio: 'pipe' })\n  .then(stdio =\u003e {\n    console.log(stdio);\n  })\n  .catch(err =\u003e {\n    console.error(err);\n  });\n```\n\nESM \u0026 TypeScript\n\n```js\nimport { runScript } from 'runscript';\n\nrunScript('node -v', { stdio: 'pipe' })\n  .then(stdio =\u003e {\n    console.log(stdio);\n  })\n  .catch(err =\u003e {\n    console.error(err);\n  });\n```\n\n### run with timeout\n\nRun user script for a maximum of 10 seconds.\n\n```js\nconst { runScript } = require('runscript');\n\nrunScript('node user-script.js', { stdio: 'pipe' }, { timeout: 10000 })\n  .then(stdio =\u003e {\n    console.log(stdio);\n  })\n  .catch(err =\u003e {\n    console.error(err);\n  });\n```\n\n## Upgrade from 1.x to 2.x\n\n```js\n// 1.x\n// const runscript = require('runscript');\n\n// 2.x\nconst { runscript } = require('runscript');\n```\n\n## License\n\n[MIT](LICENSE.txt)\n\n## Contributors\n\n[![Contributors](https://contrib.rocks/image?repo=node-modules/runscript)](https://github.com/node-modules/runscript/graphs/contributors)\n\nMade with [contributors-img](https://contrib.rocks).\n","funding_links":[],"categories":["Repository"],"sub_categories":["Shell"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-modules%2Frunscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnode-modules%2Frunscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-modules%2Frunscript/lists"}