{"name":"@actions/exec","version":"2.0.0","keywords":["github","actions","exec"],"license":"MIT","_id":"@actions/exec@2.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":"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":"35e829723389f80e362ec2cc415697ec74362ad8","tarball":"http://registry-npm.ywwl.com/@actions/exec/download/@actions/exec-2.0.0.tgz","fileCount":12,"integrity":"sha512-k8ngrX2voJ/RIN6r9xB82NVqKpnMRtxDoiO+g3olkIUpQNqjArXrCQceduQZCQj3P3xm32pChRLqRrtXTlqhIw==","signatures":[{"sig":"MEUCIQCQT6qH4W49u546DCGEAotvHE/osHzOC0IV/IyFZaWe9QIgTKu71QJBqaXZvp5q9qcJjOm4cTQNVXcyzagXNsn45Yo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@actions%2fexec@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":57021,"size":14646,"noattachment":false,"key":"/@actions/exec/-/@actions/exec-2.0.0.tgz"},"main":"lib/exec.js","_from":"file:actions-exec-2.0.0.tgz","types":"lib/exec.d.ts","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":"thboop","email":"thboop@github.com"},"_resolved":"/Users/runner/work/toolkit/toolkit/actions-exec-2.0.0.tgz","_integrity":"sha512-k8ngrX2voJ/RIN6r9xB82NVqKpnMRtxDoiO+g3olkIUpQNqjArXrCQceduQZCQj3P3xm32pChRLqRrtXTlqhIw==","repository":{"url":"git+https://github.com/actions/toolkit.git","type":"git","directory":"packages/exec"},"_npmVersion":"10.9.4","description":"Actions exec lib","directories":{"lib":"lib","test":"__tests__"},"_nodeVersion":"22.21.1","dependencies":{"@actions/io":"^2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/exec_2.0.0_1765290173473_0.21931824921627685","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":1765290173616,"_cnpm_publish_time":1765290173616,"dist-tags":{"latest":"3.0.0"}}