{"name":"@actions/io","version":"2.0.0","keywords":["github","actions","io"],"license":"MIT","_id":"@actions/io@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/io","bugs":{"url":"https://github.com/actions/toolkit/issues"},"dist":{"shasum":"3ad1271ba3cd515324f2215e8d4c1c0c3864d65b","tarball":"http://registry-npm.ywwl.com/@actions/io/download/@actions/io-2.0.0.tgz","fileCount":9,"integrity":"sha512-Jv33IN09XLO+0HS79aaODsvIRyduiF7NY/F6LYeK5oeUmrsz7aFdRphQjFoESF4jS7lMauDOttKALcpapVDIAg==","signatures":[{"sig":"MEYCIQDrKplcdjQ3AYhCJgc5VEJH09AHPE0Du02/iV4Sn4ep6QIhAOcPhTaBumsdYNippmCJqrV8EZABowUzIu1rpQjnM6rm","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@actions%2fio@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":40605,"size":10897,"noattachment":false,"key":"/@actions/io/-/@actions/io-2.0.0.tgz"},"main":"lib/io.js","_from":"file:actions-io-2.0.0.tgz","types":"lib/io.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-io-2.0.0.tgz","_integrity":"sha512-Jv33IN09XLO+0HS79aaODsvIRyduiF7NY/F6LYeK5oeUmrsz7aFdRphQjFoESF4jS7lMauDOttKALcpapVDIAg==","repository":{"url":"git+https://github.com/actions/toolkit.git","type":"git","directory":"packages/io"},"_npmVersion":"10.9.3","description":"Actions io lib","directories":{"lib":"lib","test":"__tests__"},"_nodeVersion":"22.20.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/io_2.0.0_1761915664863_0.05513373643723751","host":"s3://npm-registry-packages-npm-production"},"readme":"# `@actions/io`\n\n> Core functions for cli filesystem scenarios\n\n## Usage\n\n#### mkdir -p\n\nRecursively make a directory. Follows rules specified in [man mkdir](https://linux.die.net/man/1/mkdir) with the `-p` option specified:\n\n```js\nconst io = require('@actions/io');\n\nawait io.mkdirP('path/to/make');\n```\n\n#### cp/mv\n\nCopy or move files or folders. Follows rules specified in [man cp](https://linux.die.net/man/1/cp) and [man mv](https://linux.die.net/man/1/mv):\n\n```js\nconst io = require('@actions/io');\n\n// Recursive must be true for directories\nconst options = { recursive: true, force: false }\n\nawait io.cp('path/to/directory', 'path/to/dest', options);\nawait io.mv('path/to/file', 'path/to/dest');\n```\n\n#### rm -rf\n\nRemove a file or folder recursively. Follows rules specified in [man rm](https://linux.die.net/man/1/rm) with the `-r` and `-f` rules specified.\n\n```js\nconst io = require('@actions/io');\n\nawait io.rmRF('path/to/directory');\nawait io.rmRF('path/to/file');\n```\n\n#### which\n\nGet the path to a tool and resolves via paths. Follows the rules specified in [man which](https://linux.die.net/man/1/which).\n\n```js\nconst exec = require('@actions/exec');\nconst io = require('@actions/io');\n\nconst pythonPath: string = await io.which('python', true)\n\nawait exec.exec(`\"${pythonPath}\"`, ['main.py']);\n```\n","publish_time":1761915665062,"_cnpm_publish_time":1761915665062,"dist-tags":{"latest":"3.0.2"}}