npm.io
2.0.0 • Published 6 years ago

is-writable

Licence
MIT
Version
2.0.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
1

is-writable Travis CI Build Status

Check if a file or directory is writable.

NPM Badge

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.

Keywords