2.0.0 • Published 4 years ago

is-writable v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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.