{"_id":"shell-exec","_rev":"3724926","name":"shell-exec","description":"A tiny cross-platform promise based wrapper around child_process.spawn.","dist-tags":{"latest":"1.1.2"},"maintainers":[{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"}],"time":{"modified":"2025-02-13T06:05:25.000Z","created":"2017-06-26T20:25:04.915Z","1.1.2":"2022-05-17T23:55:27.340Z","1.1.1":"2022-05-17T23:03:35.795Z","1.1.0":"2022-05-17T23:02:07.400Z","1.0.2":"2018-09-11T05:43:20.413Z","1.0.1":"2018-05-14T13:00:34.988Z","1.0.0":"2017-06-26T20:25:04.915Z"},"users":{},"author":"Tiaan du Plessis","repository":{"url":"https://github.com/tiaanduplessis/shell-exec","type":"git"},"versions":{"1.1.2":{"name":"shell-exec","version":"1.1.2","description":"A tiny cross-platform promise based wrapper around child_process.spawn.","license":"MIT","types":"dist/index.d.ts","main":"dist/index.js","module":"dist/index.mjs","repository":{"url":"https://github.com/tiaanduplessis/shell-exec","type":"git"},"homepage":"https://github.com/tiaanduplessis/shell-exec#readme","bugs":{"url":"https://github.com/tiaanduplessis/shell-exec/issues"},"engines":{"node":">=12"},"keywords":["shell-exec","shell","sh","exec"],"author":"Tiaan du Plessis","devDependencies":{"@types/jest":"^27.4.0","@types/node":"^17.0.15","prettier":"^2.6.2","pretty-quick":"^3.1.3","tsup":"^5.12.8","tsx":"^3.1.0","typescript":"^4.6.4","vitest":"^0.12.6"},"scripts":{"test":"vitest","coverage":"vitest run --coverage","build":"rm -rf dist && tsup src/index.ts --format cjs,esm --dts --target node12","types:check":"tsc --noEmit","format":"pretty-quick --ignore-path .gitignore","start":"tsx example.ts"},"_id":"shell-exec@1.1.2","_integrity":"sha512-v2NWVDP0ws+S7miKy2oSpJ/OuL6NKuMosPNUZLDWFBlMnBtuoZxZOwxpQJwhsFZgMb+r7frpDTT8p4OSnhkpsg==","_resolved":"/private/var/folders/cv/bky7rgm565nghgtc6mh9kt6m0000gn/T/5e34d485ddba941d8dbbe4008ff4b859/shell-exec-1.1.2.tgz","_from":"file:shell-exec-1.1.2.tgz","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"shasum":"d4056f96638d8406c8ab498f9f8b28938eba2dd0","size":3713,"noattachment":false,"key":"/shell-exec/-/shell-exec-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/shell-exec/download/shell-exec-1.1.2.tgz"},"_npmUser":{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"},"directories":{},"maintainers":[{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shell-exec_1.1.2_1652831727190_0.9178419870301087"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-17T23:55:30.496Z","publish_time":1652831727340,"_cnpm_publish_time":1652831727340},"1.1.1":{"name":"shell-exec","version":"1.1.1","description":"A tiny cross-platform promise based wrapper around child_process.spawn.","license":"MIT","types":"dist/index.d.ts","main":"dist/index.js","module":"dist/index.mjs","repository":{"url":"https://github.com/tiaanduplessis/shell-exec","type":"git"},"homepage":"https://github.com/tiaanduplessis/shell-exec#readme","bugs":{"url":"https://github.com/tiaanduplessis/shell-exec/issues"},"engines":{"node":">=12"},"keywords":["shell-exec","shell","sh","exec"],"author":"Tiaan du Plessis","devDependencies":{"@types/jest":"^27.4.0","@types/node":"^17.0.15","prettier":"^2.6.2","pretty-quick":"^3.1.3","tsup":"^5.12.8","tsx":"^3.1.0","typescript":"^4.6.4","vitest":"^0.12.6"},"scripts":{"test":"vitest","coverage":"vitest run --coverage","build":"rm -rf dist && tsup src/index.ts --format cjs,esm --dts --target node12","types:check":"tsc --noEmit","format":"pretty-quick --ignore-path .gitignore","start":"tsx example.ts"},"_id":"shell-exec@1.1.1","_integrity":"sha512-Pddth/tu7ZkBe9iXLtZ7lifcexVSRKB/xcsNaL9yoGlw0DdK/RRW30dnYTH2eqOTP8VMDY9PWijti7bnW0/8kw==","_resolved":"/private/var/folders/cv/bky7rgm565nghgtc6mh9kt6m0000gn/T/509b64fb410db4007544a71dd1f99969/shell-exec-1.1.1.tgz","_from":"file:shell-exec-1.1.1.tgz","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"shasum":"f55d49bf004b372ce773b766b07b48b04a914bb9","size":3721,"noattachment":false,"key":"/shell-exec/-/shell-exec-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/shell-exec/download/shell-exec-1.1.1.tgz"},"_npmUser":{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"},"directories":{},"maintainers":[{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shell-exec_1.1.1_1652828615609_0.43111840528327994"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-17T23:03:49.461Z","publish_time":1652828615795,"_cnpm_publish_time":1652828615795},"1.1.0":{"name":"shell-exec","version":"1.1.0","description":"A tiny cross-platform promise based wrapper around child_process.spawn.","license":"MIT","types":"dist/index.d.ts","main":"dist/index.js","module":"dist/index.mjs","repository":{"url":"https://github.com/tiaanduplessis/shell-exec","type":"git"},"homepage":"https://github.com/tiaanduplessis/shell-exec#readme","bugs":{"url":"https://github.com/tiaanduplessis/shell-exec/issues"},"engines":{"node":">=12"},"keywords":["shell-exec","shell","sh","exec"],"author":"Tiaan du Plessis","devDependencies":{"@types/jest":"^27.4.0","@types/node":"^17.0.15","prettier":"^2.6.2","pretty-quick":"^3.1.3","tsup":"^5.12.8","tsx":"^3.1.0","typescript":"^4.6.4","vitest":"^0.12.6"},"scripts":{"test":"vitest","coverage":"vitest run --coverage","build":"rm -rf dist && tsup src/index.ts --format cjs,esm --dts --target node12","types:check":"tsc --noEmit","format":"pretty-quick --ignore-path .gitignore","start":"tsx example.ts"},"_id":"shell-exec@1.1.0","_integrity":"sha512-HBiA9PXmBYqA9qUgI/FvIfNOCqBKZ1p7gJTHSM7cGDQpeRMoYavrYmREiRvxOan+7RBtBgdjCRbL1bEHlR351g==","_resolved":"/private/var/folders/cv/bky7rgm565nghgtc6mh9kt6m0000gn/T/01f2db6bbeaf314397266eca484e5ee4/shell-exec-1.1.0.tgz","_from":"file:shell-exec-1.1.0.tgz","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"shasum":"1a3a5749e516d17939fa8e2848e232ca700c36c2","size":3703,"noattachment":false,"key":"/shell-exec/-/shell-exec-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/shell-exec/download/shell-exec-1.1.0.tgz"},"_npmUser":{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"},"directories":{},"maintainers":[{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shell-exec_1.1.0_1652828524717_0.8182236026210115"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-17T23:02:10.839Z","publish_time":1652828527400,"_cnpm_publish_time":1652828527400},"1.0.2":{"name":"shell-exec","version":"1.0.2","description":"A tiny cross-platform promise based wrapper around child_process.spawn.","license":"MIT","repository":{"url":"https://github.com/tiaanduplessis/shell-exec","type":"git"},"homepage":"https://github.com/tiaanduplessis/shell-exec","bugs":{"url":"https://github.com/tiaanduplessis/shell-exec"},"main":"index.js","scripts":{"test":"jest","lint":"standard --fix index.js","start":"yarn test","pretest":"yarn lint","precommit":"yarn test"},"author":{"name":"Tiaan du Plessis"},"devDependencies":{"jest":"^22.4.3","standard":"^12.0.0","husky":"^0.14.3"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) tiaanduplessis <tiaanduplessis@hotmail.com> (tiaan.beer)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","_id":"shell-exec@1.0.2","dist":{"shasum":"2e9361b0fde1d73f476c4b6671fa17785f696756","size":2326,"noattachment":false,"key":"/shell-exec/-/shell-exec-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/shell-exec/download/shell-exec-1.0.2.tgz"},"maintainers":[{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"}],"_npmUser":{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shell-exec_1.0.2_1536644600316_0.3419088291504091"},"_hasShrinkwrap":false,"publish_time":1536644600413,"_cnpm_publish_time":1536644600413},"1.0.1":{"name":"shell-exec","version":"1.0.1","description":"A tiny cross-platform promise based wrapper around child_process.spawn.","license":"MIT","repository":{"url":"git+https://github.com/tiaanduplessis/shell-exec.git","type":"git"},"homepage":"https://github.com/tiaanduplessis/shell-exec","bugs":{"url":"https://github.com/tiaanduplessis/shell-exec"},"main":"index.js","files":["index.js"],"scripts":{"test":"jest","lint":"standard --fix index.js","start":"yarn test","pretest":"yarn lint","precommit":"yarn test"},"author":{"name":"Tiaan du Plessis"},"devDependencies":{"jest":"^22.4.3","standard":"^11.0.1","husky":"^0.14.3"},"gitHead":"cc2b379fa7003e7276e2aadbec82952028e9c238","_id":"shell-exec@1.0.1","_npmVersion":"6.0.0","_nodeVersion":"8.11.1","_npmUser":{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"},"dist":{"shasum":"56fb15b34f765ba9f97f824a6440bdffdd6df2d3","size":2313,"noattachment":false,"key":"/shell-exec/-/shell-exec-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/shell-exec/download/shell-exec-1.0.1.tgz"},"maintainers":[{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shell-exec_1.0.1_1526302834297_0.5575532615876617"},"_hasShrinkwrap":false,"publish_time":1526302834988,"_cnpm_publish_time":1526302834988},"1.0.0":{"name":"shell-exec","version":"1.0.0","description":"Execute a command through the system shell","license":"MIT","repository":{"url":"git+https://github.com/tiaanduplessis/shell-exec.git","type":"git"},"homepage":"https://github.com/tiaanduplessis/shell-exec","bugs":{"url":"https://github.com/tiaanduplessis/shell-exec"},"main":"index.js","files":["index.js"],"scripts":{"test":"jest","lint":"standard index.js","lint:fix":"npm run lint -- --fix","start":"npm run test","pretest":"npm run format && npm run lint:fix","format":"prettier --print-width 100 --semi false --single-quote --write index.js","precommit":"npm test","release":"npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push --tags && npm publish"},"author":{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"},"devDependencies":{"jest":"^20.0.1","standard":"^10.0.2","husky":"^0.13.3","prettier":"~1.3.1"},"gitHead":"77a5be5a21a9d63c364b5ea66f99de8a895b594e","_id":"shell-exec@1.0.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"},"dist":{"shasum":"3e72a17e5a16d9bb0cb87e59cce290b02b109a61","size":2839,"noattachment":false,"key":"/shell-exec/-/shell-exec-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/shell-exec/download/shell-exec-1.0.0.tgz"},"maintainers":[{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shell-exec-1.0.0.tgz_1498508704760_0.06480548484250903"},"directories":{},"publish_time":1498508704915,"_hasShrinkwrap":false,"_cnpm_publish_time":1498508704915}},"readme":"\n# shell-exec\n[![package version](https://img.shields.io/npm/v/shell-exec.svg?style=flat-square)](https://npmjs.org/package/shell-exec)\n[![package downloads](https://img.shields.io/npm/dm/shell-exec.svg?style=flat-square)](https://npmjs.org/package/shell-exec)\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![package license](https://img.shields.io/npm/l/shell-exec.svg?style=flat-square)](https://npmjs.org/package/shell-exec)\n[![make a pull request](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![Greenkeeper badge](https://badges.greenkeeper.io/tiaanduplessis/shell-exec.svg)](https://greenkeeper.io/)\n\n> A tiny cross-platform promise based wrapper around child_process.spawn.\n\n## Table of Contents\n\n- [Install](#install)\n- [Usage](#usage)\n- [API](#api)\n- [Contribute](#contribute)\n- [License](#License)\n\n## Install\n\nThis project uses [node](https://nodejs.org) and [npm](https://www.npmjs.com). \n\n```sh\n$ npm install shell-exec\n$ # OR\n$ yarn add shell-exec\n```\n\n## Usage\n\n```js\nconst shellExec = require('shell-exec')\n\nshellExec('echo Hi!').then(console.log).catch(console.log)\n// Hi!\n// { stdout: '', stderr: '', cmd: 'echo Hi!', code: 0 }\n```\n\n## API\n\n### `shellExec(command, options)`\n\n**Parameters:**\n\n- *`command`* {String | Array} - String or Array of commands to run\n- *`options`* {Object} - Options object passed to [`child_process.spawn`](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options)\n\nThe function then returns a `Promise`.\n\n## Contribute\n\n1. Fork it and create your feature branch: git checkout -b my-new-feature\n2. Commit your changes: git commit -am 'Add some feature'\n3.Push to the branch: git push origin my-new-feature \n4. Submit a pull request\n\n## License\n\nMIT\n    ","_attachments":{},"homepage":"https://github.com/tiaanduplessis/shell-exec#readme","bugs":{"url":"https://github.com/tiaanduplessis/shell-exec/issues"},"license":"MIT"}