fs-access

WebJar for fs-access

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

fs-access
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

fs-access
WebJar for fs-access
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/fs-access

Download fs-access

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/fs-access/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>fs-access</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/fs-access/
implementation 'org.webjars.npm:fs-access:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/fs-access/
implementation ("org.webjars.npm:fs-access:1.0.1")
'org.webjars.npm:fs-access:jar:1.0.1'
<dependency org="org.webjars.npm" name="fs-access" rev="1.0.1">
  <artifact name="fs-access" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='fs-access', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "fs-access" % "1.0.1"
[org.webjars.npm/fs-access "1.0.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : null-check jar [1.0.0,2)

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.0.1
1.0.0