{"name":"can-write-to-dir","version":"1.0.1","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":{"graceful-fs":"^4.2.4","path-temp":"^2.0.0"},"devDependencies":{"package-preview":"3.0.0","standard":"^16.0.1","tape":"^5.0.1"},"_id":"can-write-to-dir@1.0.1","_nodeVersion":"12.18.3","_npmVersion":"6.14.8","dist":{"integrity":"sha512-+xkVeHLG9kQY/HRzu8uMSkr8Im1i9XoWGihxmB/VTJqHGCsGTFF3ebH+sBcI1urqnN8fqTjRgtag65m8x46DPg==","shasum":"c96a4bd49eb90720acdd52ff23773d36af6062b2","tarball":"http://registry-npm.ywwl.com/can-write-to-dir/download/can-write-to-dir-1.0.1.tgz","fileCount":6,"unpackedSize":3833,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/0cPCRA9TVsSAnZWagAAMRMP/i/wKKbNj8kti7QVmPPz\niLTUxPs0JshGiT0ntDDf9X6xq0eRXtYrZox/H9BED4vevjb8QV5+aXXsA7zo\n58B1ga08+mtGFt4sQrHCitQ4dzhHHIOPqaQIn8ltNy6DL/SYz0SlHfnC0d47\nP7A1qlypNUi3sTAIOeNdI9w664uA7w1i+etoKPntsA8oUHdPjFdbmxGrthOU\np7rm2GjpemvNovdCRkWRIpbbjJEA1U5lxOUSzr3b/3Sm/v4dO+giQ1zKdQBx\n3rVJu7yeyea/uh+R5GQmMqrOutuh7ZXzTRe0Zmaqb4w02Qq6FjgJKNT0ux7R\nEltRRpx5rtlA/KlYf86gzvAlnaGAVudtZUWZgzxyNvoxfme3XmPYlabH5aV0\npopEb1P7GG+Xzo+1BzpVeYBLcjW4jDT4yZ315dUTvejTRVPFOo5+/VvwKfV3\nXDC3fjPYn01iUneNtobjYEhi1O7onC6GCL0D3VLW4tuALOgyCeFhXTEgZZAg\nGV+QXxg2Nj6526QIw1e/pQ5GymbZz0joDuB76pxo5fSJ6v+GvjNirB+66HvH\n/X7Mtwl0otHZBk+wwQlhCZboAM4ToPPmQ1a9qkcn3AIgWuFrq7Nxwq6P/G64\nVixTKdzGtirsom0JhfYeIuGRi5FTGCwsWbWJV1ZjdjXVtHiKKOvbRRhvtHw+\n75op\r\n=4zXQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRC35pKqlvq8gOcKriy2qsUkVj19idx46de5jWRzau3gIgLfcLnNfzxxPpQaNp5DFbz7Kp9wOxaiuh4H7vXYgdbg4="}],"size":1977,"noattachment":false,"key":"/can-write-to-dir/-/can-write-to-dir-1.0.1.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.0.1_1610565390346_0.22470659674824933"},"_hasShrinkwrap":false,"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","publish_time":1610565390925,"_cnpm_publish_time":1610565390925,"dist-tags":{"latest":"2.0.0","next":"1.1.0"}}