2.0.0 • Published 4 years ago
is-writable
Check if a file or directory is writable.
Install
npm install is-writable
Usage
const isWritable = require("is-writable");
(async () => {
await isWritable("file.txt")
//=> true
})()
API
isWritable(filepath)
isWritable.sync(filepath)
filepath
Type: string
The file or directory to check.