path-mode
v1.0.0
Published
Check the permissions for a file path.
Maintainers
Readme
path-mode 
Check the permissions for a file path.
Install
npm install path-modeUsage
const {isWritable} = require("path-mode");
(async () => {
console.log(await isWritable('package.json'));
//=> true
})();API
isReadable(path)
Check if a path is readable.
path
Type: string
The path to check.
Returns a Promise<boolean>.
isWritable(path)
Check if a path is writable.
Returns a Promise<boolean>.
isReadableSync(path)
Synchronously check if a path is readable.
Returns a boolean.
isWritableSync(path)
Synchronously check if a path is writable.
Returns a boolean.

