Returns true if the current process has permission to write to the specified directory
npm install can-write-to-dir> Returns true if the current process has permission to write to the specified directory

``sh`
`js
const canWriteToDir = require('can-write-to-dir')
canWriteToDir.sync('C:\\')
//> false
`
Returns true if fs.writeFileSync is able to create a file.
Returns true if fs.writeFile` is able to create a file.