fs-access

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

This package is no longer relevant as Node.js 0.12 is unmaintained.
Last updated 6 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install fs-access 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.0                                ...           latest (6 years ago)

3 Versions

  • 2.0.0 [deprecated]           ...           6 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE