{"maintainers":[{"name":"anonymous","email":"iam@alexindigo.com"}],"keywords":["exec","shell","arguments","command","cli","execute"],"dist-tags":{"latest":"2.0.1"},"author":{"name":"Alex Indigo","email":"iam@alexindigo.com"},"description":"Executes provided shell commands with supplied arguments. Supports parallel and templated commands","readme":"# executioner  [![NPM Module](https://img.shields.io/npm/v/executioner.svg?style=flat)](https://www.npmjs.com/package/executioner)\n\nExecutes provided shell commands with supplied arguments. Supports parallel and templated commands.\n\n[![Build Status](https://img.shields.io/travis/alexindigo/executioner/master.svg?style=flat-square)](https://travis-ci.org/alexindigo/executioner)\n[![Coverage Status](https://img.shields.io/coveralls/alexindigo/executioner/master.svg?style=flat-square)](https://coveralls.io/github/alexindigo/executioner?branch=master)\n\n[![Dependency Status](https://img.shields.io/david/alexindigo/executioner.svg?style=flat)](https://david-dm.org/alexindigo/executioner)\n[![bitHound Overall Score](https://www.bithound.io/github/alexindigo/executioner/badges/score.svg)](https://www.bithound.io/github/alexindigo/executioner)\n\n\n*Notice of change of ownership: Starting version 1.0.0 this package has changed it's owner and goals. Old version (0.0.1) is still available on npm via `npm install executioner@0.0.1`. Thank you.*\n\n\n## Install\n\n```\nnpm install --save executioner\n```\n\n## Examples\n\n```javascript\nvar executioner = require('executioner');\n```\n\nSimple command:\n\n```javascript\nexecutioner('echo A', {}, function(err, result)\n{\n  assert.equal(result, 'A');\n});\n```\n\nCombined command:\n\n```javascript\nexecutioner(['echo A', 'echo B', 'echo C'], {}, function(err, result)\n{\n  assert.deepEqual(result, ['A', 'B', 'C']);\n});\n```\n\nParameterized command:\n\n```javascript\nexecutioner(['echo A-${abc}', 'echo B-${abc}', 'echo C-${xyz}', 'echo D-${xyz}'], {abc: '123', xyz: '789'}, function(err, result)\n{\n  assert.deepEqual(result, ['A-123', 'B-123', 'C-789', 'D-789']);\n});\n```\n\nNamed list of commands:\n\n```javascript\nexecutioner({'Letter A': 'echo A', 'Letter B': 'echo B', 'Letter C': 'echo C'}, {}, function(err, result)\n{\n  assert.deepEqual(result, ['Letter A: A', 'Letter B: B', 'Letter C: C']);\n});\n```\n\nPrefixed commands:\n\n```javascript\nexecutioner(['A', 'B', 'C'], {}, {cmdPrefix: 'echo prefixed'}, function(err, result)\n{\n  assert.deepEqual(result, ['prefixed A', 'prefixed B', 'prefixed C']);\n});\n```\n\nNon-string parameters:\n\n```javascript\nexecutioner(['echo A:${ok}:', 'echo B:${no}:', 'echo C:${nay}:', 'echo D:${never}:'], {ok: true, no: false, nay: null, never: undefined}, function(err, result)\n{\n  assert.deepEqual(result, ['A:1:', 'B::', 'C::', 'D::']);\n});\n```\n\nError messaging:\n\n```javascript\nexecutioner('echo ABC && echo XYZ 1>&2 && false', {}, function(err, result)\n{\n  assert.equal(err.message, 'Command failed: echo ABC && echo XYZ 1>&2 && false\\nXYZ');\n  assert.equal(err.stdout, 'ABC');\n  assert.equal(err.stderr, 'XYZ');\n  assert.equal(result, undefined);\n});\n```\n\nJob termination:\n\n```javascript\nvar job = executioner('echo ABC; sleep 5; echo XYZ', {}, function(err, result)\n{\n  assert.ok(err.terminated);\n  // Partial output\n  assert.equal(result, 'ABC');\n});\n\nsetTimeout(function()\n{\n  executioner.terminate(job);\n}, 100);\n```\n\nFor more examples check out [`tests/tests.json`](tests/tests.json).\n\n## License\n\nExecutioner is released under the [MIT](LICENSE) license.\n","repository":{"type":"git","url":"git+https://github.com/alexindigo/executioner.git"},"license":"MIT","bugs":{"url":"https://github.com/alexindigo/executioner/issues"},"versions":{"0.0.1":{"name":"executioner","version":"0.0.1","description":"Wrappers around execSync, a package for synchronous execution of shell commands.","main":"index.js","scripts":{"test":"mocha test.js"},"repository":{"type":"git","url":"git://github.com/amit-bansil/executioner.git"},"keywords":["shell","sh","exec","spawn","child_process","sync","utilities","cli","command"],"author":{"name":"Vlad Grenkov & Amit Bansil"},"license":"MIT","gitHead":"f2f4fc05fb5ff1b16be9d3d689d562e114b0a841","dependencies":{"execSync":"~1.0.1-pre","temp":"~0.6.0"},"devDependencies":{"chai":"~1.5.0","mocha":"~1.9.0"},"_id":"executioner@0.0.1","dist":{"shasum":"724e83d3e01e7c90b5c56428ca9b7b6807ccf314","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/executioner/-/executioner-0.0.1.tgz","integrity":"sha512-bs9uHLWY3ZnssHk5zKx00woeBLyypbH6VhTxnTIxHJoKOAT89P7R6sYqRNAKy8/Cdb5OGaZM1l+9TEGtwwAQ7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFWWUs5+j+7HDg9Q+fcL+Z0ISug5dRvjSPeLfsk+iuAAIgMJb7QUDHrIiEq+cMfFozrJ6/Ge2Xh9soFgdFxraiYMk="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"anonymous","email":"amit@amit-bansil.com"},"maintainers":[{"name":"anonymous","email":"amit@amit-bansil.com"}]},"1.0.0":{"name":"executioner","version":"1.0.0","description":"Executes provided shell command with supplied arguments","main":"index.js","scripts":{"test":"node test.js","cover":"istanbul cover test.js","check":"istanbul check-coverage coverage/coverage.json","lint":"eslint *.js"},"pre-commit":["lint","cover","check"],"repository":{"type":"git","url":"git+https://github.com/alexindigo/executioner.git"},"keywords":["exec","shell","arguments","command","cli","execute"],"author":{"name":"Alex Indigo","email":"iam@alexindigo.com"},"license":"MIT","bugs":{"url":"https://github.com/alexindigo/executioner/issues"},"homepage":"https://github.com/alexindigo/executioner#readme","devDependencies":{"eslint":"^1.9.0","istanbul":"^0.4.0","pre-commit":"^1.1.2"},"gitHead":"281c85f5bfdd01bf2bcdba130993e956b4401561","_id":"executioner@1.0.0","_shasum":"6f7541110828cf305fd25bd9c05c437001df3531","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"anonymous","email":"iam@alexindigo.com"},"dist":{"shasum":"6f7541110828cf305fd25bd9c05c437001df3531","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/executioner/-/executioner-1.0.0.tgz","integrity":"sha512-p//i9lcWcad1pYQFxjOnFm0VMhqUXVo+bo0tz2w7Qz/ZpOIKAXQ3JIP0kgulMNVr7/Ft6DFx07DfoYnR3XNKZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvBGVnZD/xEn/Lg10RkspNUYst7spGCFWliN7EUSeTAAIhALHePqw3tl9oz1nVDGwNgoe6qSSdzErlmiKpy0IyxoQo"}]},"maintainers":[{"name":"anonymous","email":"iam@alexindigo.com"}]},"1.0.1":{"name":"executioner","version":"1.0.1","description":"Executes provided shell command with supplied arguments","main":"index.js","scripts":{"test":"istanbul cover test.js","lint":"eslint *.js","debug":"node test.js","check":"istanbul check-coverage coverage/coverage.json"},"pre-commit":["lint","test","check"],"repository":{"type":"git","url":"git+https://github.com/alexindigo/executioner.git"},"keywords":["exec","shell","arguments","command","cli","execute"],"author":{"name":"Alex Indigo","email":"iam@alexindigo.com"},"license":"MIT","bugs":{"url":"https://github.com/alexindigo/executioner/issues"},"homepage":"https://github.com/alexindigo/executioner#readme","devDependencies":{"coveralls":"^2.11.4","eslint":"^1.9.0","istanbul":"^0.4.0","pre-commit":"^1.1.2"},"gitHead":"0869202862fca3c9f8c821c25465843286c2c430","_id":"executioner@1.0.1","_shasum":"a9f1993d51627d63c825f685826c6bd39eda052a","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"anonymous","email":"iam@alexindigo.com"},"dist":{"shasum":"a9f1993d51627d63c825f685826c6bd39eda052a","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/executioner/-/executioner-1.0.1.tgz","integrity":"sha512-rPPUJdFghUWtg0Zp0kQ3w+YuQUiXtu4+uvHE1VU5tbi/W2/w6LKou/3lby9XXsPu+/BdBLGcWDbI2a3JVmvZ+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBS5iYjhAxcgQMxYKLDxwJ8wy/bR56QntuRC40Nd3hg3AiBmUbkYxnAAQHxF7EAevHFJiLxo5hE+ZdL2VeHa2mLWvQ=="}]},"maintainers":[{"name":"anonymous","email":"iam@alexindigo.com"}]},"1.1.0":{"name":"executioner","version":"1.1.0","description":"Executes provided shell command with supplied arguments","main":"index.js","scripts":{"test":"istanbul cover test.js","lint":"eslint *.js","debug":"node test.js","check":"istanbul check-coverage coverage/coverage.json"},"pre-commit":["lint","test","check"],"repository":{"type":"git","url":"git+https://github.com/alexindigo/executioner.git"},"keywords":["exec","shell","arguments","command","cli","execute"],"author":{"name":"Alex Indigo","email":"iam@alexindigo.com"},"license":"MIT","bugs":{"url":"https://github.com/alexindigo/executioner/issues"},"homepage":"https://github.com/alexindigo/executioner#readme","devDependencies":{"coveralls":"^2.11.4","eslint":"^1.9.0","istanbul":"^0.4.0","pre-commit":"^1.1.2"},"gitHead":"4dadf4544e9969a23c115acb68ca4d01f14abe76","_id":"executioner@1.1.0","_shasum":"8e5373f677969bc9a590d546c1d0db53a5c09b30","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"anonymous","email":"iam@alexindigo.com"},"dist":{"shasum":"8e5373f677969bc9a590d546c1d0db53a5c09b30","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/executioner/-/executioner-1.1.0.tgz","integrity":"sha512-gIHC7f9aTfEBfyX4DNtEHKUN0qKFONm1oTMFPwD1LdWLwgFtxle7DYcelzgxC9zrsLBlWSTiK8/yZn8QxusJnA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0/wG4xaBuxMvm8Q543xmWY16g6oVUvfD+aBzTGO4qPwIhAKDEdtuCyuRxll+4RG3FB0FnjM5dNijwyDwXo3LdsP5O"}]},"maintainers":[{"name":"anonymous","email":"iam@alexindigo.com"}]},"1.2.0":{"name":"executioner","version":"1.2.0","description":"Executes provided shell command with supplied arguments","main":"index.js","scripts":{"test":"istanbul cover tests/run.js","lint":"eslint *.js lib/*.js tests/*.js","debug":"node tests/run.js","check":"istanbul check-coverage coverage/coverage.json"},"pre-commit":["lint","test","check"],"repository":{"type":"git","url":"git+https://github.com/alexindigo/executioner.git"},"keywords":["exec","shell","arguments","command","cli","execute"],"author":{"name":"Alex Indigo","email":"iam@alexindigo.com"},"license":"MIT","bugs":{"url":"https://github.com/alexindigo/executioner/issues"},"homepage":"https://github.com/alexindigo/executioner#readme","devDependencies":{"coveralls":"^2.11.4","eslint":"^1.10.3","istanbul":"^0.4.1","pre-commit":"^1.1.2"},"dependencies":{"xtend":"^4.0.1"},"gitHead":"e1d9c311ed22e63c37584e48e81ef8d509abfa5d","_id":"executioner@1.2.0","_shasum":"25d8e02004deaca71ed6a3b48cd322db064f2ae3","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"anonymous","email":"iam@alexindigo.com"},"dist":{"shasum":"25d8e02004deaca71ed6a3b48cd322db064f2ae3","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/executioner/-/executioner-1.2.0.tgz","integrity":"sha512-sYpHUoUFFTylKWnvhhXoliyxzwFNitc+p7b5Lj+pjMcX2aT4oiiYtDMMQKDf3qtRFXp6zrOCGwDeCpiYsmoKQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7s9BK4FCeyQgU/QrGIf2TSUUvwsb1yAQodbXKEhuB2wIhAJ5z7O44ttqOrq9CGL7TscQp753AWC0pfoPsfeb/rWgB"}]},"maintainers":[{"name":"anonymous","email":"iam@alexindigo.com"}]},"2.0.0":{"name":"executioner","version":"2.0.0","description":"Executes provided shell commands with supplied arguments. Supports parallel and templated commands","main":"index.js","scripts":{"lint":"eslint *.js lib/*.js tests/*.js","test":"node tests/run.js","cover":"istanbul cover tests/run.js","check":"istanbul check-coverage coverage/coverage.json","files":"pkgfiles --sort=name"},"pre-commit":["lint","cover","check"],"repository":{"type":"git","url":"git+https://github.com/alexindigo/executioner.git"},"keywords":["exec","shell","arguments","command","cli","execute"],"author":{"name":"Alex Indigo","email":"iam@alexindigo.com"},"license":"MIT","bugs":{"url":"https://github.com/alexindigo/executioner/issues"},"homepage":"https://github.com/alexindigo/executioner#readme","devDependencies":{"coveralls":"^2.11.12","eslint":"^2.13.1","istanbul":"^0.4.5","pkgfiles":"^2.3.0","pre-commit":"^1.1.3"},"dependencies":{"mixly":"^1.0.0"},"gitHead":"1a34241d531435533019fdcda34d5e6bea42f349","_id":"executioner@2.0.0","_shasum":"7bdcecb1eeb96f5276a347710933517d6e627aae","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"anonymous","email":"iam@alexindigo.com"},"dist":{"shasum":"7bdcecb1eeb96f5276a347710933517d6e627aae","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/executioner/-/executioner-2.0.0.tgz","integrity":"sha512-ZljDZsG3lOtXbixV54TnoWd135qe6OWEVJcxpvj2j9vl9abRFvcRiNNJpoXPaSj5IXiHfU95JIbn5qb+Cz5Ftw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDj8bXulSvmKVzlKqN9Qki9rv4aLqPXwRgYlqoGshtXrQIhALN8KUz6sx9oFRnmTqei4z13fc/YhCeXDH9aDGExXOy0"}]},"maintainers":[{"name":"anonymous","email":"iam@alexindigo.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/executioner-2.0.0.tgz_1472014273974_0.5936025336850435"}},"2.0.0-beta1":{"name":"executioner","version":"2.0.0-beta1","description":"Executes provided shell commands with supplied arguments. Supports parallel and templated commands","main":"index.js","scripts":{"lint":"eslint *.js lib/*.js tests/*.js","test":"node tests/run.js","cover":"istanbul cover tests/run.js","check":"istanbul check-coverage coverage/coverage.json","files":"pkgfiles --sort=name"},"pre-commit":["lint","cover","check"],"repository":{"type":"git","url":"git+https://github.com/alexindigo/executioner.git"},"keywords":["exec","shell","arguments","command","cli","execute"],"author":{"name":"Alex Indigo","email":"iam@alexindigo.com"},"license":"MIT","bugs":{"url":"https://github.com/alexindigo/executioner/issues"},"homepage":"https://github.com/alexindigo/executioner#readme","devDependencies":{"coveralls":"^2.11.12","eslint":"^2.13.1","istanbul":"^0.4.5","pkgfiles":"^2.3.0","pre-commit":"^1.1.3"},"dependencies":{"mixly":"^1.0.0"},"gitHead":"57295f6634a8fcaefec2def90359faa9e5ee5496","_id":"executioner@2.0.0-beta1","_shasum":"072d52c56c0e414963a7f7273af508d5a6858a42","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"anonymous","email":"iam@alexindigo.com"},"dist":{"shasum":"072d52c56c0e414963a7f7273af508d5a6858a42","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/executioner/-/executioner-2.0.0-beta1.tgz","integrity":"sha512-1iTlmeUKEje3kIoGSzxkVyvOO6iwvZw+NuUyrYi7p8oActWsqG2oiUKZ8718rHRIyyM6lHNqTkIpnfvvS+/l2w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBZ+IQ89r5uhZAAK+dIbiCZy2Lf2U4G02qyR1NlTIEFRAiEAg7VSuiUwlzPeYWVslsXfevAnNfaVlOaCzf61Nwn0xwI="}]},"maintainers":[{"name":"anonymous","email":"iam@alexindigo.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/executioner-2.0.0-beta1.tgz_1472027904115_0.9208354083821177"}},"2.0.1":{"name":"executioner","version":"2.0.1","description":"Executes provided shell commands with supplied arguments. Supports parallel and templated commands","main":"index.js","scripts":{"lint":"eslint *.js lib/*.js tests/*.js","test":"node tests/run.js","cover":"istanbul cover tests/run.js","check":"istanbul check-coverage coverage/coverage.json","files":"pkgfiles --sort=name"},"pre-commit":["lint","cover","check"],"repository":{"type":"git","url":"git+https://github.com/alexindigo/executioner.git"},"keywords":["exec","shell","arguments","command","cli","execute"],"author":{"name":"Alex Indigo","email":"iam@alexindigo.com"},"license":"MIT","bugs":{"url":"https://github.com/alexindigo/executioner/issues"},"homepage":"https://github.com/alexindigo/executioner#readme","devDependencies":{"coveralls":"^2.11.12","eslint":"^2.13.1","istanbul":"^0.4.5","pkgfiles":"^2.3.0","pre-commit":"^1.1.3"},"dependencies":{"mixly":"^1.0.0"},"gitHead":"582f92897f47c13f4531e0b692aebb4a9f134eec","_id":"executioner@2.0.1","_shasum":"add328e03bc45dd598f358fbb529fc0be0ec6fcd","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"anonymous","email":"iam@alexindigo.com"},"dist":{"shasum":"add328e03bc45dd598f358fbb529fc0be0ec6fcd","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/executioner/-/executioner-2.0.1.tgz","integrity":"sha512-idZAlKsxEZASjaIqP4PQ1txyS1bOcDwWCHy/8p5oMmLGV0XNCQPD6WWAOwJCUVsWItWzAN2BEash5N78PliaIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcYLXUKKq9LTLi0u0ipObTiOVkMJvDa2vlNr/NwmfxXAIgMGS4Qq65LyfCXTFS+7C35Aj/7cOi0FVZKf+8l7AkAYU="}]},"maintainers":[{"name":"anonymous","email":"iam@alexindigo.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/executioner-2.0.1.tgz_1472029229525_0.2740880420897156"}}},"name":"executioner","time":{"modified":"2022-06-17T21:53:17.819Z","created":"2013-10-13T21:12:06.263Z","0.0.1":"2013-10-13T21:12:07.373Z","1.0.0":"2015-11-20T10:44:47.897Z","1.0.1":"2015-11-20T20:09:07.233Z","1.1.0":"2015-12-07T03:25:57.869Z","1.2.0":"2015-12-11T02:28:06.362Z","2.0.0":"2016-08-24T04:51:17.546Z","2.0.0-beta1":"2016-08-24T08:38:24.378Z","2.0.1":"2016-08-24T09:00:33.218Z"},"readmeFilename":"README.md","homepage":"https://github.com/alexindigo/executioner#readme"}