{"name":"@actions/io","version":"3.0.1","keywords":["github","actions","io"],"license":"MIT","_id":"@actions/io@3.0.1","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/io","bugs":{"url":"https://github.com/actions/toolkit/issues"},"dist":{"shasum":"08d89fe2a0cb080dab5edd84c0b53deb3f323c13","tarball":"http://registry-npm.ywwl.com/@actions/io/download/@actions/io-3.0.1.tgz","fileCount":9,"integrity":"sha512-8/zmSSMmcjuAusQevlBAAw/EUDGh/TOfF9sQkGYnvKF+XNlHr41yFujIWCsaB2zOmr4dl+t3r83tAkp5Q3kIBA==","signatures":[{"sig":"MEUCIQCuJY7FmHP1+CMiDoQ9zpD8lY5PaMsKRI5I7YZ3NI49fgIgSDbmB/ZXfQzDjEKCkL27k8K/LMPzcrDhdNvUPzwoKCA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@actions%2fio@3.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":36953,"size":10180,"noattachment":false,"key":"/@actions/io/-/@actions/io-3.0.1.tgz"},"main":"lib/io.js","type":"module","_from":"file:actions-io-3.0.1.tgz","types":"lib/io.d.ts","exports":{".":{"types":"./lib/io.d.ts","import":"./lib/io.js"},"./lib/io-util":{"types":"./lib/io-util.d.ts","import":"./lib/io-util.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:0b25ac62-fa07-4106-b9ca-0e83e53639ab"}},"_resolved":"/Users/runner/work/toolkit/toolkit/actions-io-3.0.1.tgz","_integrity":"sha512-8/zmSSMmcjuAusQevlBAAw/EUDGh/TOfF9sQkGYnvKF+XNlHr41yFujIWCsaB2zOmr4dl+t3r83tAkp5Q3kIBA==","repository":{"url":"git+https://github.com/actions/toolkit.git","type":"git","directory":"packages/io"},"_npmVersion":"11.6.2","description":"Actions io lib","directories":{"lib":"lib","test":"__tests__"},"_nodeVersion":"24.13.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/io_3.0.1_1769627576889_0.7765951970611591","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":1769627577029,"_cnpm_publish_time":1769627577029,"dist-tags":{"latest":"3.0.2"}}