fa

fs-access

Node.js 0.12 fs.access() & fs.accessSync() ponyfill

Showing:

Popularity

Downloads/wk

778K

GitHub Stars

11

Maintenance

Last Commit

3yrs ago

Contributors

0

Package

Dependencies

1

Size (min+gzip)

0.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Deprecated!
This package is no longer relevant as Node.js 0.12 is unmaintained.

Readme

Deprecated

This package is no longer relevant as Node.js 0.12 is unmaintained.


fs-access Build Status

Node.js 0.12 fs.access() & fs.accessSync() ponyfill

Install

$ npm install --save fs-access

Usage

var fsAccess = require('fs-access');

fsAccess('unicorn.txt', function (err) {
    if (err) {
        console.error('no access');
        return;
    }

    console.log('access');
});
var fsAccess = require('fs-access');

try {
    fsAccess.sync('unicorn.txt');
    console.log('access');
} catch (err) {
    console.error('no access');
}

API

See the fs.access() & fs.accessSync() docs.

Mode flags are on the fsAccess instance instead of fs. Only the F_OK mode is supported.

License

MIT © Sindre Sorhus

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100