{"name":"@actions/exec","version":"3.0.0","keywords":["github","actions","exec"],"license":"MIT","_id":"@actions/exec@3.0.0","maintainers":[{"name":"chrispat","email":"chrispat@github.com"},{"name":"bryanmacfarlane","email":"bryanmacf@gmail.com"},{"name":"thboop","email":"thboop@github.com"},{"name":"konradpabjan","email":"konradpabjan@github.com"},{"name":"cschleiden","email":"cschleiden@outlook.com"},{"name":"bdehamer","email":"brian@dehamer.com"},{"name":"joshmgross","email":"joshmgross@github.com"}],"homepage":"https://github.com/actions/toolkit/tree/main/packages/exec","bugs":{"url":"https://github.com/actions/toolkit/issues"},"dist":{"shasum":"8c3464d20f0aa4068707757021d7e3c01a7ee203","tarball":"http://registry-npm.ywwl.com/@actions/exec/download/@actions/exec-3.0.0.tgz","fileCount":12,"integrity":"sha512-6xH/puSoNBXb72VPlZVm7vQ+svQpFyA96qdDBvhB8eNZOE8LtPf9L4oAsfzK/crCL8YZ+19fKYVnM63Sl+Xzlw==","signatures":[{"sig":"MEYCIQDG2/98NqxIvzJgApCctyY+GwfVZ4VVNrWgqKWKOl1UbwIhAM+J3ESD/CynaVPTfMwcG1wJ3fmf4s48uqJ7uMYR+3X+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@actions%2fexec@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":54034,"size":14111,"noattachment":false,"key":"/@actions/exec/-/@actions/exec-3.0.0.tgz"},"main":"lib/exec.js","type":"module","_from":"file:actions-exec-3.0.0.tgz","types":"lib/exec.d.ts","exports":{".":{"types":"./lib/exec.d.ts","import":"./lib/exec.js"}},"scripts":{"tsc":"tsc","test":"echo \"Error: run tests from root\" && exit 1","audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b11740a8-6455-4db8-a14b-d0d009f65548"}},"_resolved":"/Users/runner/work/toolkit/toolkit/actions-exec-3.0.0.tgz","_integrity":"sha512-6xH/puSoNBXb72VPlZVm7vQ+svQpFyA96qdDBvhB8eNZOE8LtPf9L4oAsfzK/crCL8YZ+19fKYVnM63Sl+Xzlw==","repository":{"url":"git+https://github.com/actions/toolkit.git","type":"git","directory":"packages/exec"},"_npmVersion":"11.6.2","description":"Actions exec lib","directories":{"lib":"lib","test":"__tests__"},"_nodeVersion":"24.13.0","dependencies":{"@actions/io":"^3.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/exec_3.0.0_1769634276208_0.767356575637677","host":"s3://npm-registry-packages-npm-production"},"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","publish_time":1769634276360,"_cnpm_publish_time":1769634276360,"dist-tags":{"latest":"3.0.0"}}