{"name":"@actions/io","version":"1.0.2","description":"Actions io lib","keywords":["github","actions","io"],"homepage":"https://github.com/actions/toolkit/tree/master/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 --audit-level=moderate","test":"echo \"Error: run tests from root\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"_id":"@actions/io@1.0.2","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-J8KuFqVPr3p6U8W93DOXlXW6zFvrQAJANdS+vw0YhusLIq+bszW8zmK2Fh1C2kDPX8FMvwIl1OUcFgvJoXLbAg==","shasum":"2f614b6e69ce14d191180451eb38e6576a6e6b27","tarball":"http://registry-npm.ywwl.com/@actions/io/download/@actions/io-1.0.2.tgz","fileCount":8,"unpackedSize":35713,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGL9XCRA9TVsSAnZWagAAXR8P/014OGo30ag9COK3HwTg\nU3TgNYAyFUrNUGK3sN/wuRoTJq967hnHdGgSMqMWovNoopRTXaJZoPjUM8Jp\n2Xa9BfjtDyxI5Ntt/+BNiVqrFtaHKzewb788cZ5q11A2X7KxYyZgHgHpV5Uk\nm3UTvdmrIgmuj2cdm3IDicZvieXousHEUUbuOlhd5eN0dvOGfY0f7HGU256R\n2cyLhdxgF3FeCYuQoIEaq9/d09lxgiwMD22gtFwjx4+mPEWgmA1Tqi2MaI5Y\naGIznuvEfbpniSzhlnhbxWSaUthKdt3JHzOJj9nbGP2xpHPWFEhRUwIpc8h5\nVlJeuXeWRzbe365r8Oq1vNfPSGfX6XxFvsUoBKWHGT9HoPxwXXMn7q7Eoqx3\n//1+skQC5zW/FX4HRPbULusTcMztLifw7Q+5mUeBRxcSxTwDO1y0pkDUaL+1\njh6M3rPCEMjQeH+8d3pLjyiPBMU6V3NOEsQqoei1lLwCerLTTSMAh2JJAyFp\nY2A/7wtgp/+B0NGLavV1IjKXuzju7AsdxhFUgcrP+eYdX8sezNcFQQPHRmY8\nhRla0kIlY5FzPTAokd8cPpJQjDxG30BPLkJCkV+/eaLh9kn/xCf9isT8FM/Z\n+2eD71+NmaMI+lrdcfXJ2U9RW04m3prx1D72nbDeXpv6Hjk8Z1mnV0x0ADrN\n/881\r\n=/iTV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGfCj8/OsgeDE+eJyoJ9iv+wIRTKN0UCAkRJVDszlZqYAiEA13ruAwEzDJh3U+yY1Gd1IgbWwBKyzp89uU86XCuiZ+0="}],"size":9245,"noattachment":false,"key":"/@actions/io/-/@actions/io-1.0.2.tgz"},"maintainers":[{"email":"bryanmacf@gmail.com","name":"bryanmacfarlane"},{"email":"chrispat@github.com","name":"chrispat"}],"_npmUser":{"name":"bryanmacfarlane","email":"bryanmacf@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/io_1.0.2_1578680151178_0.0044826252624177165"},"_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":1578680151349,"_cnpm_publish_time":1578680151349,"dist-tags":{"latest":"3.0.2"}}