{"name":"@actions/io","version":"1.1.3","description":"Actions io lib","keywords":["github","actions","io"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/io","license":"MIT","main":"lib/io.js","types":"lib/io.d.ts","directories":{"lib":"lib","test":"__tests__"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/io"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \"Error: run tests from root\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"_id":"@actions/io@1.1.3","_integrity":"sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==","_resolved":"/Users/runner/work/toolkit/toolkit/actions-io-1.1.3.tgz","_from":"file:actions-io-1.1.3.tgz","_nodeVersion":"18.14.2","_npmVersion":"9.5.0","dist":{"integrity":"sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==","shasum":"4cdb6254da7962b07473ff5c335f3da485d94d71","tarball":"http://registry-npm.ywwl.com/@actions/io/download/@actions/io-1.1.3.tgz","fileCount":9,"unpackedSize":37117,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcqAWc2gflSJl0Hv9/AoTkdpSU5xp3HY4l14cRLWwHJwIgDwPTve3lKA7zJJYXV7GWvO7CA/h8PLeubaBasNk5dYk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEhkxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrIpRAAhlqPadLYkCujCGus0xlms/MsbNkQUUteqseh8dG1giOtUri0\r\noPV1/913usWYQywwwmA42/4EGNNHIBQsfM6/jpCNpw/A3OyqIpyIi0Slv09i\r\nMPhg+L2pYtWnNkCuFtgIRyWvxRC6nsyMQZdq/RXG9slcVgwIlG0DGAnZ61tD\r\nPTv3UvIlPy5W99MF0hcXHKU65nSqb0z2Y1w87JbWMtSmGPBnuiefeuydSvRy\r\nVqB5pRyNASAEtOoBfAPonb/9Ju+rBHL/6LRovyAvBq4DKdT81aA6svMlnr/I\r\nRWO+28d3Gd8BbXccuafhw49G5KJRdbMg/uUbmY22g66tw+iqFsYCOCs2l/TE\r\nYP30VgwTqN6tyX4IV5ZV6GUrDK/kWHsv7weUizsJPw2HwaFydAYx13H+mwXs\r\nx0iJk8mfT9t+Jlfyb/e9tCu0jLkCMWRiS9zv90Gw8lQcNqkaKT9u9Jy+gQ1o\r\niitj6nFcQYHyxhjeQA7n5/9Yh1NfWNEE0ucI005xLk7QnwVWQbscLDBbgudF\r\nNnjBY/VAn6aybZOX6t21K1cIP+ftBQX7P0puVDGoFUt9qSgaNuAp8RlMmR89\r\nfFCUVju2KBqFyKvs5Z+Lpf8yJ9ayXTQmCSo+TEvs73d/AgwVpUij19Hs23F8\r\n1o9R0lHsaXOAM3DM9M0TSqPS2cSv1unCRAU=\r\n=4QgW\r\n-----END PGP SIGNATURE-----\r\n","size":10056,"noattachment":false,"key":"/@actions/io/-/@actions/io-1.1.3.tgz"},"_npmUser":{"name":"thboop","email":"thboop@github.com"},"maintainers":[{"name":"chrispat","email":"chrispat@github.com"},{"name":"bryanmacfarlane","email":"bryanmacf@gmail.com"},{"name":"hross","email":"hross@github.com"},{"name":"thboop","email":"thboop@github.com"},{"name":"konradpabjan","email":"konradpabjan@github.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/io_1.1.3_1678907697481_0.3970699127358337"},"_hasShrinkwrap":false,"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":1678907697746,"_cnpm_publish_time":1678907697746,"dist-tags":{"latest":"3.0.2"}}