{"name":"@actions/io","version":"1.0.1","description":"Actions io lib","keywords":["github","actions","io"],"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":"a2ab4bcf78e4f7080f0d45856e6eeba16f0bbc52","_id":"@actions/io@1.0.1","_nodeVersion":"12.9.1","_npmVersion":"lerna/3.13.3/node@v12.9.1+x64 (darwin)","dist":{"integrity":"sha512-rhq+tfZukbtaus7xyUtwKfuiCRXd1hWSfmJNEpFgBQJ4woqPEpsBw04awicjwz9tyG2/MVhAEMfVn664Cri5zA==","shasum":"81a9418fe2bbdef2d2717a8e9f85188b9c565aca","tarball":"http://registry-npm.ywwl.com/@actions/io/download/@actions/io-1.0.1.tgz","fileCount":9,"unpackedSize":36684,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdcSlyCRA9TVsSAnZWagAA3d8QAIkDtJN5UtmVhrt+mUl8\nDNCbC5n0DA7+VFnwCcQum5gbqWp5f6AE191rp+t24n0OZvQeWvylBWGOKSLG\nYXowQaU53T8PoSRlBCFIOKV30ZL3GhjDBmhvmYNmCTFzhSCTT6OwuEJmZqZ3\nFqh+afpdIAagSTAXOZmrZoXWVx9/rBYhw9ZL2gsW3Do7hSuZLmv87rGbsL/9\n2V6jUNsTQFLKINjDUb4xAkp0c9/nxPy7fiEnktNQ+Pv4wzPTpzmgMcfWkwgU\nKjCBUVqVPoG4B5UorOFHNJZhxJhqzzM7xoxoQay8VWhbbWT8ZF/GGqnUhDen\nTp+nnMCDOgVyPO5gLJPaKqgcc47KZ0MVHL+K936pOuK0p4B69WUYYpYLVS5+\nFxdq+VMwsUCxtjiOP5B1w06S78QlruD9gydymHG9/8ZanJ02mJF5pnpXySEr\nYkQt33J7YHOYDBr4u/ZI3oxgJ7klhLWHAM5mYIhXnNbOSXuA6DyOtC+5/CKT\niUR6AZqA/NcbVbJ7h4rPI1VFNS83CgWAK3711fYFmbY+VkwsfGftv2KdbD8b\nkwRGNUr9+xnqO483Dcdfx9EhaOxKMjgwKLMfEbAhmXUaazsay2oS+YFYuisi\nLzZLlcACEr8/FOxeAiziUsloAq+3R2JKrNPFzl0+TgiW4akIa9lss45iIDCG\nPeaV\r\n=2Mbr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDglUmLwRl5915xJSHBfCXpyd4dZu9Khit8p+mkqeXGXwIgW+HTurWpYTKBtrmd8JxbSrZgRuaIdOGSosxpy4K7As8="}],"size":9575,"noattachment":false,"key":"/@actions/io/-/@actions/io-1.0.1.tgz"},"maintainers":[{"name":"bryanmacfarlane","email":"bryanmacf@gmail.com"},{"name":"chrispat","email":"chrispat@github.com"},{"name":"damccorm","email":"daniel.mccormick@microsoft.com"},{"name":"jclem","email":"jonathan@jclem.net"}],"_npmUser":{"name":"jclem","email":"jonathan@jclem.net"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/io_1.0.1_1567697265944_0.10182279663641758"},"_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":1567697266115,"_cnpm_publish_time":1567697266115,"dist-tags":{"latest":"3.0.2"}}