{"_id":"@actions/exec","_rev":"4130731","name":"@actions/exec","description":"Actions exec lib","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"bdehamer","email":""},{"name":"bryanmacfarlane","email":""},{"name":"ericsciple","email":""},{"name":"thboop","email":""}],"time":{"modified":"2026-03-01T18:32:45.000Z","created":"2019-08-07T17:33:14.967Z","3.0.0":"2026-01-28T21:04:36.360Z","2.0.0":"2025-12-09T14:22:53.616Z","1.1.1":"2022-03-17T16:48:05.391Z","1.1.0":"2021-06-07T18:30:24.104Z","1.0.4":"2020-04-28T15:57:43.519Z","1.0.3":"2020-01-10T18:13:19.951Z","1.0.2":"2019-12-09T17:49:17.077Z","1.0.1":"2019-09-05T15:27:45.803Z","1.0.0":"2019-08-07T17:33:14.967Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/exec"},"versions":{"3.0.0":{"name":"@actions/exec","version":"3.0.0","description":"Actions exec lib","keywords":["github","actions","exec"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/exec","license":"MIT","type":"module","main":"lib/exec.js","types":"lib/exec.d.ts","exports":{".":{"types":"./lib/exec.d.ts","import":"./lib/exec.js"}},"directories":{"lib":"lib","test":"__tests__"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/exec"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \"Error: run tests from root\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/io":"^3.0.2"},"_id":"@actions/exec@3.0.0","_integrity":"sha512-6xH/puSoNBXb72VPlZVm7vQ+svQpFyA96qdDBvhB8eNZOE8LtPf9L4oAsfzK/crCL8YZ+19fKYVnM63Sl+Xzlw==","_resolved":"/Users/runner/work/toolkit/toolkit/actions-exec-3.0.0.tgz","_from":"file:actions-exec-3.0.0.tgz","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"shasum":"8c3464d20f0aa4068707757021d7e3c01a7ee203","size":14111,"noattachment":false,"key":"/@actions/exec/-/@actions/exec-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@actions/exec/download/@actions/exec-3.0.0.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b11740a8-6455-4db8-a14b-d0d009f65548"}},"maintainers":[{"name":"bdehamer","email":""},{"name":"bryanmacfarlane","email":""},{"name":"ericsciple","email":""},{"name":"thboop","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/exec_3.0.0_1769634276208_0.767356575637677"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-28T21:04:36.360Z","publish_time":1769634276360,"_source_registry_name":"default","_cnpm_publish_time":1769634276360},"2.0.0":{"name":"@actions/exec","version":"2.0.0","description":"Actions exec lib","keywords":["github","actions","exec"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/exec","license":"MIT","main":"lib/exec.js","types":"lib/exec.d.ts","directories":{"lib":"lib","test":"__tests__"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/exec"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \"Error: run tests from root\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/io":"^2.0.0"},"_id":"@actions/exec@2.0.0","_integrity":"sha512-k8ngrX2voJ/RIN6r9xB82NVqKpnMRtxDoiO+g3olkIUpQNqjArXrCQceduQZCQj3P3xm32pChRLqRrtXTlqhIw==","_resolved":"/Users/runner/work/toolkit/toolkit/actions-exec-2.0.0.tgz","_from":"file:actions-exec-2.0.0.tgz","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"shasum":"35e829723389f80e362ec2cc415697ec74362ad8","size":14646,"noattachment":false,"key":"/@actions/exec/-/@actions/exec-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@actions/exec/download/@actions/exec-2.0.0.tgz"},"_npmUser":{"name":"thboop","email":"thboop@github.com"},"maintainers":[{"name":"bdehamer","email":""},{"name":"bryanmacfarlane","email":""},{"name":"ericsciple","email":""},{"name":"thboop","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/exec_2.0.0_1765290173473_0.21931824921627685"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-09T14:22:53.616Z","publish_time":1765290173616,"_source_registry_name":"default","_cnpm_publish_time":1765290173616},"1.1.1":{"name":"@actions/exec","version":"1.1.1","description":"Actions exec lib","keywords":["github","actions","exec"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/exec","license":"MIT","main":"lib/exec.js","types":"lib/exec.d.ts","directories":{"lib":"lib","test":"__tests__"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/exec"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \"Error: run tests from root\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/io":"^1.0.1"},"_id":"@actions/exec@1.1.1","_integrity":"sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==","_resolved":"/Users/runner/work/toolkit/toolkit/actions-exec-1.1.1.tgz","_from":"file:actions-exec-1.1.1.tgz","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"shasum":"2e43f28c54022537172819a7cf886c844221a611","size":14475,"noattachment":false,"key":"/@actions/exec/-/@actions/exec-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@actions/exec/download/@actions/exec-1.1.1.tgz"},"_npmUser":{"name":"thboop","email":"thboop@github.com"},"maintainers":[{"name":"bdehamer","email":""},{"name":"bryanmacfarlane","email":""},{"name":"ericsciple","email":""},{"name":"thboop","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exec_1.1.1_1647535685249_0.08825538411149014"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-17T16:48:30.712Z","publish_time":1647535685391,"_cnpm_publish_time":1647535685391},"1.1.0":{"name":"@actions/exec","version":"1.1.0","description":"Actions exec lib","keywords":["github","actions","exec"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/exec","license":"MIT","main":"lib/exec.js","types":"lib/exec.d.ts","directories":{"lib":"lib","test":"__tests__"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/exec"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \"Error: run tests from root\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/io":"^1.0.1"},"_resolved":"","_integrity":"","_from":"file:actions-exec-1.1.0.tgz","_id":"@actions/exec@1.1.0","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"shasum":"53441d968e56d2fec69ad3f15773d4d94e01162c","size":14475,"noattachment":false,"key":"/@actions/exec/-/@actions/exec-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@actions/exec/download/@actions/exec-1.1.0.tgz"},"_npmUser":{"name":"thboop","email":"thboop@github.com"},"maintainers":[{"name":"bdehamer","email":""},{"name":"bryanmacfarlane","email":""},{"name":"ericsciple","email":""},{"name":"thboop","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exec_1.1.0_1623090623909_0.01559373049888002"},"_hasShrinkwrap":false,"publish_time":1623090624104,"_cnpm_publish_time":1623090624104,"_cnpmcore_publish_time":"2021-12-16T13:51:42.948Z"},"1.0.4":{"name":"@actions/exec","version":"1.0.4","description":"Actions exec lib","keywords":["github","actions","exec"],"homepage":"https://github.com/actions/toolkit/tree/master/packages/exec","license":"MIT","main":"lib/exec.js","types":"lib/exec.d.ts","directories":{"lib":"lib","test":"__tests__"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/exec"},"scripts":{"audit-moderate":"npm install && npm audit --audit-level=moderate","test":"echo \"Error: run tests from root\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/io":"^1.0.1"},"_id":"@actions/exec@1.0.4","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"99d75310e62e59fc37d2ee6dcff6d4bffadd3a5d","size":12489,"noattachment":false,"key":"/@actions/exec/-/@actions/exec-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@actions/exec/download/@actions/exec-1.0.4.tgz"},"maintainers":[{"name":"bdehamer","email":""},{"name":"bryanmacfarlane","email":""},{"name":"ericsciple","email":""},{"name":"thboop","email":""}],"_npmUser":{"name":"bryanmacfarlane","email":"bryanmacf@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exec_1.0.4_1588089463421_0.7633178504824116"},"_hasShrinkwrap":false,"publish_time":1588089463519,"_cnpm_publish_time":1588089463519,"_cnpmcore_publish_time":"2021-12-16T13:51:43.193Z"},"1.0.3":{"name":"@actions/exec","version":"1.0.3","description":"Actions exec lib","keywords":["github","actions","exec"],"homepage":"https://github.com/actions/toolkit/tree/master/packages/exec","license":"MIT","main":"lib/exec.js","types":"lib/exec.d.ts","directories":{"lib":"lib","test":"__tests__"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/exec"},"scripts":{"audit-moderate":"npm install && npm audit --audit-level=moderate","test":"echo \"Error: run tests from root\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/io":"^1.0.1"},"_id":"@actions/exec@1.0.3","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"shasum":"b967f8700d6ff011dcc91243b58bafc1bb9ab95f","size":12234,"noattachment":false,"key":"/@actions/exec/-/@actions/exec-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@actions/exec/download/@actions/exec-1.0.3.tgz"},"maintainers":[{"name":"bdehamer","email":""},{"name":"bryanmacfarlane","email":""},{"name":"ericsciple","email":""},{"name":"thboop","email":""}],"_npmUser":{"name":"bryanmacfarlane","email":"bryanmacf@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exec_1.0.3_1578679999842_0.8728656191890782"},"_hasShrinkwrap":false,"publish_time":1578679999951,"_cnpm_publish_time":1578679999951,"_cnpmcore_publish_time":"2021-12-16T13:51:43.773Z"},"1.0.2":{"name":"@actions/exec","version":"1.0.2","description":"Actions exec lib","keywords":["github","actions","exec"],"homepage":"https://github.com/actions/toolkit/tree/master/packages/exec","license":"MIT","main":"lib/exec.js","directories":{"lib":"lib","test":"__tests__"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/exec"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/io":"^1.0.1"},"_id":"@actions/exec@1.0.2","_nodeVersion":"10.16.3","_npmVersion":"6.11.3","dist":{"shasum":"80ae9c2ea0bf5d0046a9f73d2a1b15bddfff0311","size":12209,"noattachment":false,"key":"/@actions/exec/-/@actions/exec-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@actions/exec/download/@actions/exec-1.0.2.tgz"},"maintainers":[{"name":"bdehamer","email":""},{"name":"bryanmacfarlane","email":""},{"name":"ericsciple","email":""},{"name":"thboop","email":""}],"_npmUser":{"name":"bryanmacfarlane","email":"bryanmacf@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exec_1.0.2_1575913756932_0.9995630901330796"},"_hasShrinkwrap":false,"publish_time":1575913757077,"_cnpm_publish_time":1575913757077,"_cnpmcore_publish_time":"2021-12-16T13:51:44.032Z"},"1.0.1":{"name":"@actions/exec","version":"1.0.1","description":"Actions exec lib","keywords":["github","actions","exec"],"homepage":"https://github.com/actions/toolkit/tree/master/packages/exec","license":"MIT","main":"lib/exec.js","directories":{"lib":"lib","test":"__tests__"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"devDependencies":{"@actions/io":"^1.0.1"},"gitHead":"a2ab4bcf78e4f7080f0d45856e6eeba16f0bbc52","_id":"@actions/exec@1.0.1","_nodeVersion":"12.9.1","_npmVersion":"lerna/3.13.3/node@v12.9.1+x64 (darwin)","dist":{"shasum":"1624b541165697e7008d7c87bc1f69f191263c6c","size":11817,"noattachment":false,"key":"/@actions/exec/-/@actions/exec-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@actions/exec/download/@actions/exec-1.0.1.tgz"},"maintainers":[{"name":"bdehamer","email":""},{"name":"bryanmacfarlane","email":""},{"name":"ericsciple","email":""},{"name":"thboop","email":""}],"_npmUser":{"name":"jclem","email":"jonathan@jclem.net"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exec_1.0.1_1567697265646_0.20536826237819605"},"_hasShrinkwrap":false,"publish_time":1567697265803,"_cnpm_publish_time":1567697265803,"_cnpmcore_publish_time":"2021-12-16T13:51:44.243Z"},"1.0.0":{"name":"@actions/exec","version":"1.0.0","description":"Actions exec lib","keywords":["exec","actions"],"homepage":"https://github.com/actions/toolkit/tree/master/packages/exec","license":"MIT","main":"lib/exec.js","directories":{"lib":"lib","test":"__tests__"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"devDependencies":{"@actions/io":"^1.0.0"},"gitHead":"a40bce7c8d382aa3dbadaa327acbc696e9390e55","_id":"@actions/exec@1.0.0","_nodeVersion":"10.15.3","_npmVersion":"lerna/3.13.3/node@v10.15.3+x64 (win32)","dist":{"shasum":"70c8b698c9baa02965c07da5f0b185ca56f0a955","size":11813,"noattachment":false,"key":"/@actions/exec/-/@actions/exec-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@actions/exec/download/@actions/exec-1.0.0.tgz"},"maintainers":[{"name":"bdehamer","email":""},{"name":"bryanmacfarlane","email":""},{"name":"ericsciple","email":""},{"name":"thboop","email":""}],"_npmUser":{"name":"damccorm","email":"daniel.mccormick@microsoft.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exec_1.0.0_1565199194816_0.7049944293714467"},"_hasShrinkwrap":false,"publish_time":1565199194967,"_cnpm_publish_time":1565199194967,"_cnpmcore_publish_time":"2021-12-16T13:51:44.495Z"}},"readme":"# `@actions/exec`\n\n## Usage\n\n#### Basic\n\nYou can use this package to execute tools in a cross platform way:\n\n```js\nconst exec = require('@actions/exec');\n\nawait exec.exec('node index.js');\n```\n\n#### Args\n\nYou can also pass in arg arrays:\n\n```js\nconst exec = require('@actions/exec');\n\nawait exec.exec('node', ['index.js', 'foo=bar']);\n```\n\n#### Output/options\n\nCapture output or specify [other options](https://github.com/actions/toolkit/blob/d9347d4ab99fd507c0b9104b2cf79fb44fcc827d/packages/exec/src/interfaces.ts#L5):\n\n```js\nconst exec = require('@actions/exec');\n\nlet myOutput = '';\nlet myError = '';\n\nconst options = {};\noptions.listeners = {\n  stdout: (data: Buffer) => {\n    myOutput += data.toString();\n  },\n  stderr: (data: Buffer) => {\n    myError += data.toString();\n  }\n};\noptions.cwd = './lib';\n\nawait exec.exec('node', ['index.js', 'foo=bar'], options);\n```\n\n#### Exec tools not in the PATH\n\nYou can specify the full path for tools not in the PATH:\n\n```js\nconst exec = require('@actions/exec');\n\nawait exec.exec('\"/path/to/my-tool\"', ['arg1']);\n```\n","_attachments":{},"homepage":"https://github.com/actions/toolkit/tree/main/packages/exec","bugs":{"url":"https://github.com/actions/toolkit/issues"},"license":"MIT"}