{"name":"runscript","version":"2.0.1","description":"Run script easy!","scripts":{"lint":"eslint --cache src test --ext .ts","pretest":"npm run prepublishOnly","test":"npm run lint -- --fix && egg-bin test","test:node14":"egg-bin test","preci":"npm run prepublishOnly","ci":"npm run lint && egg-bin cov && attw --pack","prepublishOnly":"tshy && tshy-after"},"dependencies":{"is-type-of":"^2.2.0"},"devDependencies":{"@arethetypeswrong/cli":"^0.15.3","@eggjs/tsconfig":"1","@types/mocha":"10","@types/node":"22","autod":"^3.1.2","egg-bin":"6","eslint":"8","eslint-config-egg":"14","tshy":"2","tshy-after":"1","typescript":"5"},"homepage":"https://github.com/node-modules/runscript","repository":{"type":"git","url":"git://github.com/node-modules/runscript.git"},"bugs":{"url":"https://github.com/node-modules/runscript/issues"},"keywords":["runscript","run-script","npm run"],"engines":{"node":">=16.0.0"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"},"license":"MIT","type":"module","tshy":{"exports":{".":"./src/index.ts","./package.json":"./package.json"}},"exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./package.json":"./package.json"},"types":"./dist/commonjs/index.d.ts","main":"./dist/commonjs/index.js","module":"./dist/esm/index.js","_id":"runscript@2.0.1","gitHead":"8c2c16b8e9166fbee06c54f0ca5bc3afe932cc58","_nodeVersion":"18.20.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-CjlpKusSKpE943TsCLkqU1dBDfC2nWwaaiaVlXu3IG3FvSa4IqSn7dMGT16Q6wDNUJX/51IO4mifbEipXnMKDA==","shasum":"03a875da8e9f70df52129db89523ce783ce8946b","tarball":"http://registry-npm.ywwl.com/runscript/download/runscript-2.0.1.tgz","fileCount":11,"unpackedSize":42203,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/runscript@2.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEY2qf1rsHbYSLZCUioVLkQc+DQ8TqpclYDEp29NGJOVAiA74zsAwpyqf+gsNMa8X9ZGQsvPDx5bC2o/fFqZK/zm+Q=="}],"size":8214,"noattachment":false,"key":"/runscript/-/runscript-2.0.1.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/runscript_2.0.1_1733797288615_0.8668541995384709"},"_hasShrinkwrap":false,"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 => {\n    console.log(stdio);\n  })\n  .catch(err => {\n    console.error(err);\n  });\n```\n\nESM & TypeScript\n\n```js\nimport { runScript } from 'runscript';\n\nrunScript('node -v', { stdio: 'pipe' })\n  .then(stdio => {\n    console.log(stdio);\n  })\n  .catch(err => {\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 => {\n    console.log(stdio);\n  })\n  .catch(err => {\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","publish_time":1733797288780,"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":"sakura9515@gmail.com"}],"_cnpm_publish_time":1733797288780,"dist-tags":{"latest":"2.0.1"}}