{"name":"can-write-to-dir","version":"1.1.0","description":"Returns true if the current process has permission to write to the specified directory","main":"index.js","typings":"index.d.ts","scripts":{"test":"standard && preview && node test"},"repository":{"type":"git","url":"https://github.com/zkochan/packages/tree/master/can-write-to-dir"},"keywords":["access","permission","directory","folder"],"engines":{"node":">=10.13"},"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io/"},"license":"MIT","homepage":"https://github.com/zkochan/packages/tree/master/can-write-to-dir#readme","dependencies":{"path-temp":"^2.0.0"},"devDependencies":{"package-preview":"3.0.0","standard":"^16.0.3","tape":"^5.1.1"},"readme":"# can-write-to-dir\n\n> Returns true if the current process has permission to write to the specified directory\n\n<!--@shields('npm')-->\n[![npm version](https://img.shields.io/npm/v/can-write-to-dir.svg)](https://www.npmjs.com/package/can-write-to-dir)\n<!--/@-->\n\n## Installation\n\n```sh\n<npm|yarn|pnpm> add can-write-to-dir\n```\n\n## Usage\n\n```js\nconst canWriteToDir = require('can-write-to-dir')\n\ncanWriteToDir.sync('C:\\\\')\n//> false\n```\n\n## API\n\n### `canWriteToDir.sync(dir): Boolean`\n\nReturns `true` if `fs.writeFileSync` is able to create a file.\n\n### `canWriteToDir(dir): Promise<Boolean>`\n\nReturns `true` if `fs.writeFile` is able to create a file.\n\n## License\n\n[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io/)\n","readmeFilename":"README.md","_id":"can-write-to-dir@1.1.0","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-PYRx9toaBwM5kk+GTFuijayF5omWa/ToRCSlMUe2YA2Ki8+j0vOc+Hoe1bf7C5l1lQA2y3tE2t+PeQ4XiTlibg==","shasum":"f7538054610b969c828e300fda60c8659a72adc5","tarball":"http://registry-npm.ywwl.com/can-write-to-dir/download/can-write-to-dir-1.1.0.tgz","fileCount":6,"unpackedSize":3801,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJbVdCRA9TVsSAnZWagAATvsP/3gF7h+vR7qLF1TYA+Gi\nXWOKTk104TFmjSvygV1+rx0+ww4elhjs2E53OpZ6jw7em7qqkaKULY7Y37vY\nB1eJljMfD9390UH9iVQZDeX+K9DNBBKwUoz+vrTWFWYWpgaGHSNEF2jpV53S\nSw6gUElT5uOm1LXXjvrxmAKZyaGdMrgwL3zyx/7Y7OS+VXypio5AlfD+Gn7j\nJYtS5birme21wACkHACB6Uv0FZx2Xyyr3UWFVDEa2MY/2qjg6CupcV95T3CY\nBo8BpOAp5UHCsPifV2HqUwt6eQ0bPQXEEuwHq4YN+vlY0G+Tq3EthqlpJZ1f\nQRNDcEzqFxVfSVtYTKv7BKgHfMPmYVXHOmB40DsxvErzMFsTgEBideSwQHEi\nktZbmfZuyJI09xj5xv/e4X6EXmT8lwtOHSezk0NivrXcpuuJENg2Hu2YJMpN\n0m8fJKipJtBwsDBmGNXF8XQMJtgU/rkSEtpInbNLqjMWGIpYHCq82xkB+jsM\nmqGF+z8UUmOAc7fYBIlOi/S9WilMAv8tuZz2Muzv+yjNHGGpBP7smcll3Vrs\nDz+/bftxJae0jJl5N0u5IdmzBvxx0PFKU66N/ke2rr9xfV7WSBDfViaKG571\nZrplIExpsDDgExHCp6sTzixTThA64vk5Vm+hlE1SlDh3XtubeWOwyt0CXIuM\n3ULO\r\n=r5Qe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOWNQ7f6hfs5Ii8u1UuwWZwDmM0FPqWV4u/SuaboDufQIgaTbqm28FJkmo8Wq1kH4F3FSBcXOqtERQ9d6teTPV9hM="}],"size":1955,"noattachment":false,"key":"/can-write-to-dir/-/can-write-to-dir-1.1.0.tgz"},"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/can-write-to-dir_1.1.0_1613083996544_0.02552061217252244"},"_hasShrinkwrap":false,"publish_time":1613083996710,"_cnpm_publish_time":1613083996710,"dist-tags":{"latest":"2.0.0","next":"1.1.0"}}