{"name":"@actions/io","version":"1.1.2","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.2","_integrity":"sha512-d+RwPlMp+2qmBfeLYPLXuSRykDIFEwdTA0MMxzS9kh4kvP1ftrc/9fzy6pX6qAjthdXruHQ6/6kjT/DNo5ALuw==","_resolved":"/Users/runner/work/toolkit/toolkit/actions-io-1.1.2.tgz","_from":"file:actions-io-1.1.2.tgz","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-d+RwPlMp+2qmBfeLYPLXuSRykDIFEwdTA0MMxzS9kh4kvP1ftrc/9fzy6pX6qAjthdXruHQ6/6kjT/DNo5ALuw==","shasum":"766ac09674a289ce0f1550ffe0a6eac9261a8ea9","tarball":"http://registry-npm.ywwl.com/@actions/io/download/@actions/io-1.1.2.tgz","fileCount":9,"unpackedSize":39270,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiM2YdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoDhA//Ru2xqHiq5m9gxxGWgdhsrOUCEwXypwbLWNFmKM5qu1Cyo4rm\r\nHyal0GdT8XPRSw1cZRrWYlJr/lseZfZnxjY/GwYQARSd+QlRuXTXrgkN6Dt4\r\nmuYL8wWNkw9mUriIv7QZIcWXL7A310w5Uiit8QJ9ArgPUj4dq1ANkEUFtYmy\r\nkFVtWXN1ModFnpHN99StmdWpzZnZSlDz/owXGEBHqgE+43bx1bhZ64Evk79Y\r\nAaZhEwz3CWgCl3nE7VTh2bUiTOGX3L98sIgnlevVs2QykdEAU9j/WndSjwvi\r\nAK7iYd/OQ2z7IqxJEwywXHMDNffBv/Gp2WvRstnecSf2wn57PkrxTCkvuaZC\r\nwDn+1zkvD4ilvwODwETlMYQyCLOy5JbI7Cmv1pV0p5MXLYCDA7fobpQButkw\r\n0w2F+qbTtW2goU1NOWBf2uoftR5wXZ0EANzkI6JxzaSGjd6TwRjqJJZt35pa\r\nsCJYExAiQUjTh/eH4CZl18xsE5miuE9EvdLF2KLCXCNO1KGWvig6qPr1LXXR\r\nefcy6+DXl1ghVbcyrLbeNKq2yZCe8+IYaAeFN5qjEtlGLvW82OU03wvMb05H\r\nZrjtAPn/FEJXYrS73EKrjycgQ06TdfnT6W8pvrYc+EA6UUrXtGzQ3fvHjlSR\r\nLngRDzwiUaM5C9iGCbH927paZejSkbdVlQE=\r\n=LVDw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBj92l84SZXt9UenuPUtgn03jLw/+4P3/w6k6iv6alGeAiEAv397oFuOUbl9AvHMUwZmbl3oeAqqLLbQgjCPrIHIWA4="}],"size":10492,"noattachment":false,"key":"/@actions/io/-/@actions/io-1.1.2.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.2_1647535645410_0.8837474891755153"},"_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":1647535645613,"_cnpm_publish_time":1647535645613,"dist-tags":{"latest":"3.0.2"}}