Popularity
0.9
Stable
Activity
0.0
Stable
11
8
2

Monthly Downloads: 0
Programming language: JavaScript
License: MIT License
Tags: Node.Js     Polyfills     Process     Check     Fs     Ponyfill     Polyfill     Shim     User     Core     Built-in     Permission     Mode     Stat     Access    
Latest version: v2.0.0

fs-access alternatives and similar modules

Based on the "Node.Js" category.
Alternatively, view fs-access alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of fs-access or a related project?

Add another 'Node.Js' Module

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


*Note that all licence references and agreements mentioned in the fs-access README section above are relevant to that project's source code only.