{"name":"@actions/io","version":"1.1.0","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.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-PspSX7Z9zh2Fyyuf3F6BsYeXcYHfc/VJ1vwy2vouas95efHVd42M6UfBFRs+jY0uiMDXhAoUtATn9g2r1MaWBQ==","shasum":"02c98b5ed93c3331981c9a075494066400eadb7a","tarball":"http://registry-npm.ywwl.com/@actions/io/download/@actions/io-1.1.0.tgz","fileCount":9,"unpackedSize":38130,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZ048CRA9TVsSAnZWagAAJsQP+QAI7W31/9Oitmi0A8YQ\nwl/eAJxtJ3yO/xeCSZRnWtapXfjXGPWnLDbsKJVaDQFeIHeVF9tay+KmYsCl\nTPS8xf1vq7NtkivvrHnhmMVM+1EwsxuYsFCLuk/Jnfjo247K3HEvMPUIzeJO\n3eKt7/5il+XRoBI9zkHtq8om7wd45k8tIx5oWg+BZbS2TvW9dI5f3GFFlQUD\nhExqVuJ7z3aYTYXwkNMSt8gp3Jbmjl5FoC7Eb7rNugukIYyIaeH2BXI9DlkW\nP3zdiLXy7x6NwUlZJepTSUNaww609sK04CajT7mh4jFV4W1JV1mZTfueT6++\nwXbY5+doy2+KbsiJZQeaiqOVp/TW/noAzWc/Ymx2h1+1VxYBFkSIRthTjbxz\nx3c+i/x++7skk9Fy1aRX3KgvpLwf6aZotQyaib/0xLCLbH9j6lKPne33gKsy\nUZgH0nZgm7A5yGWIY93AQjstH5O2BVGaceUc6F1vud7N1nJYn4imfb+frvyz\nfTm98lDkGtaysOlZTYXncEpKJI8L/wEtREymTruLxqL0pR9AAPj0GxWrbxmT\n4d+vlkA0uIItXFeRGqK9hqNKuxg/Y+lwifEYIL4VZqdv0TDeOUduRQ9W+61P\nG+QmPS2eg7OtOLz48cE+UdypTZCp0alfWYhgg0KlL1DDn8v81FNTQe4rDuMv\nyKtA\r\n=j6o9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEKd/uA+6o3TDkmA1MRrBzQWm0RNeV7KiM5/6W/UTfGiAiEAlGgbcn/rra1UoembIY+Zfviqm9cu/WsNZKaFysDj/Ps="}],"size":10280,"noattachment":false,"key":"/@actions/io/-/@actions/io-1.1.0.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.0_1617382972025_0.9392982960782241"},"_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":1617382972133,"_cnpm_publish_time":1617382972133,"dist-tags":{"latest":"3.0.2"}}