{"name":"@actions/io","version":"3.0.2","keywords":["github","actions","io"],"license":"MIT","_id":"@actions/io@3.0.2","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":"6f89b27a159d109836d983efa283997c23b92284","tarball":"http://registry-npm.ywwl.com/@actions/io/download/@actions/io-3.0.2.tgz","fileCount":9,"integrity":"sha512-nRBchcMM+QK1pdjO7/idu86rbJI5YHUKCvKs0KxnSYbVe3F51UfGxuZX4Qy/fWlp6l7gWFwIkrOzN+oUK03kfw==","signatures":[{"sig":"MEQCIGW9sOyWZjKNiOeEYXsOgcIuyasuc1PClU0B2VCf2MWqAiBnHxjE5eEqvyPUbLlFbsgQxCBmlrxBOqRgN4cNq6nI0g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@actions%2fio@3.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":36953,"size":10180,"noattachment":false,"key":"/@actions/io/-/@actions/io-3.0.2.tgz"},"main":"lib/io.js","type":"module","_from":"file:actions-io-3.0.2.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.2.tgz","_integrity":"sha512-nRBchcMM+QK1pdjO7/idu86rbJI5YHUKCvKs0KxnSYbVe3F51UfGxuZX4Qy/fWlp6l7gWFwIkrOzN+oUK03kfw==","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.2_1769629197024_0.74892565654385","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":1769629197177,"_cnpm_publish_time":1769629197177,"dist-tags":{"latest":"3.0.2"}}