{"name":"@actions/io","version":"1.1.1","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"},"_resolved":"","_integrity":"","_from":"file:actions-io-1.1.1.tgz","_id":"@actions/io@1.1.1","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-Qi4JoKXjmE0O67wAOH6y0n26QXhMKMFo7GD/4IXNVcrtLjUlGjGuVys6pQgwF3ArfGTQu0XpqaNr0YhED2RaRA==","shasum":"4a157406309e212ab27ed3ae30e8c1d641686a66","tarball":"http://registry-npm.ywwl.com/@actions/io/download/@actions/io-1.1.1.tgz","fileCount":9,"unpackedSize":39270,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvna6CRA9TVsSAnZWagAA6JUP/RwJ37m8PeD3ADfDYoyC\ns5u8hvrt/Rg277Hj6SFOfmnHPCK3FVqodqhvL6tuiz72DLk0QjgUcqMpL58Q\nD/DPYW+TssVq6iAxFzHlSybCfZqi4ji8nDVYfFJhebqA2rjky0mFFeO1FXZf\nXOa/39bd1do/pAPoSr/86/Y6G78ESDHi+pyyheKh+e2jy4+GslYSJE0bl9dW\nGDca6JILb/BLK3HZ4n1YZugllaG3ML7IxU27SdTUmJWZ9UZatO5/sXc0OEYw\noi63qFu9j6LKzkh5CQsPK7Fi+fpuCUHVZin5o5d+a9YJzi411DnBuvQMftWx\nKbum8DPdWkerbuK6Zu7errbrP+GCtprmVjGTUBRkutQkNyY3DH3BC9gE1j8Z\nTDE8JXOdB6KRwJRwVDlMwiUYwejOpf0pVG8JVKX87naZb7lrV2I1qS31Ssch\nDo2TFQkFDUqQogvHHEC/9kguLHlBjj3KujxBNI3Eji5S73yURC2lpFgKMX9o\nxEQ6drl96RGiatYgFIeYYt5GWbF/1b2w/zip/8xZMMGYQzj5LQdiXd/vPYoe\neZOpCXO4pTkNVmfan1utVK8AKVjim6g7h7w23zU2CIbA30ci9pNqsySZhxt4\nZHrHzu276SlKzFd0Hhacc8v0RWqQll7Xx+62MjJ/NhLZ7JO3c7axp754CA5m\n3oIz\r\n=atpx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHLdJf51Z4OJJ6p+C1yOr8RS1VjFfxsVoTRub35ZlzUwIhANcMMoQ2hPBcN+pZXAgUMNbQ+N65ciGeGQbpN/V2EEtH"}],"size":10491,"noattachment":false,"key":"/@actions/io/-/@actions/io-1.1.1.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.1_1623094970047_0.944707474742325"},"_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":1623094970229,"_cnpm_publish_time":1623094970229,"dist-tags":{"latest":"3.0.2"}}