{"name":"@actions/io","version":"1.0.0","description":"Actions io lib","keywords":["io","actions"],"homepage":"https://github.com/actions/toolkit/tree/master/packages/io","license":"MIT","main":"lib/io.js","directories":{"lib":"lib","test":"__tests__"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"gitHead":"a40bce7c8d382aa3dbadaa327acbc696e9390e55","_id":"@actions/io@1.0.0","_nodeVersion":"10.15.3","_npmVersion":"lerna/3.13.3/node@v10.15.3+x64 (win32)","dist":{"integrity":"sha512-ezrJSRdqtXtdx1WXlfYL85+40F7gB39jCK9P0jZVODW3W6xUYmu6ZOEc/UmmElUwhRyDRm1R4yNZu1Joq2kuQg==","shasum":"379454174660623bb5b3bce0be8b9e2285a62bcb","tarball":"http://registry-npm.ywwl.com/@actions/io/download/@actions/io-1.0.0.tgz","fileCount":9,"unpackedSize":37127,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSwtbCRA9TVsSAnZWagAAW2kQAJBUkmXjA1YSXfWZKg1Y\nLJ1RfmrO1u33UPZsjbKohd0U7rq4x3LGV+YlzjqZw2xqeeCvF8ElXAqebwMJ\nm0XRiet4SKUZvietcNrdH8REjiRsrtf+C2WOBCipaOSRMtQBZ0ggEdqXBo3k\nBIHAcDFeJiwYidlHMbxAjh9hFyf3hk4GmowqGLSqTHOYpjzmFhA98sYPbhgf\n+ejprntZCwRFBBu+ye+m+ndFI9BlLet+k3Pfp42bqv7s7f6UqKUUjJP9Yu3D\nocNzpxeSbEdxvWH8U93zRobcT+Ll/kPNRDklXDdK5BKBkys9YXqMuDl+lgrc\nMNS//qeQrmOF3fVdhrepAsOIoT30jfI0Y/SqyLbyzW1eZY+SHaOchn2JjsO8\nbXZSR9C01ZFLUFxnVUtKh/HKENoGS5TkVAPZbC9TEncUpxWVD2ILSV8QDLFl\nUWxXqWSjfyW1w0IZDiE6tJfDGeetu2sjTsz7GRc+bfHN0IaupjyyFVSuVQyi\nAtHi4lH8vppYOS2AqryMn/sJT1iZf45L50RDjEok5T7Az60zCV2XgbPtG4lk\nguJxM7WHIpeU+oZ4msXf82hp8gvgAFZ/RjY48264rhURv2+yq71WtqMmCeA+\nmbOa+8TIqnCb5Fb29GivnXY4g+kEJUf8OMWOQ/wbgSOn/UIJ1641WFlYjTlK\nCNxZ\r\n=8aZ9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEsjmHGOappP3oHsCGE1XEVRvaZI+T/bv9kfDMGMEagsAiEAh3TnlWUzFSxBygKB5jMdb9jSYFjmN5DDfATMQch2qi4="}],"size":9567,"noattachment":false,"key":"/@actions/io/-/@actions/io-1.0.0.tgz"},"maintainers":[{"name":"damccorm","email":"daniel.mccormick@microsoft.com"},{"name":"bryanmacfarlane","email":"bryanmacf@gmail.com"},{"name":"chrispat","email":"chrispat@github.com"},{"name":"jclem","email":"jonathan@jclem.net"}],"_npmUser":{"name":"damccorm","email":"daniel.mccormick@microsoft.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/io_1.0.0_1565199194638_0.40484313751651313"},"_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":1565199194770,"_cnpm_publish_time":1565199194770,"dist-tags":{"latest":"3.0.2"}}