is-writable
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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.

Package Sidebar

Install

npm i is-writable

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

3.32 kB

Total Files

5

Last publish

Collaborators

  • richienb