Sha256: 2557a5378ea2cab729e51b6fce5da24c782940d219a6bd6ade069190e919894f

Contents?: true

Size: 252 Bytes

Versions: 129

Compression:

Stored size: 252 Bytes

Contents

'use strict';
const fs = require('fs');

module.exports = fp => new Promise(resolve => {
	fs.access(fp, err => {
		resolve(!err);
	});
});

module.exports.sync = fp => {
	try {
		fs.accessSync(fp);
		return true;
	} catch (err) {
		return false;
	}
};

Version data entries

129 entries across 128 versions & 18 rubygems

Version Path
immosquare-cleaner-0.1.62 node_modules/pkg-dir/node_modules/find-up/node_modules/locate-path/node_modules/path-exists/index.js
immosquare-cleaner-0.1.61 node_modules/pkg-dir/node_modules/find-up/node_modules/locate-path/node_modules/path-exists/index.js
immosquare-cleaner-0.1.60 node_modules/pkg-dir/node_modules/find-up/node_modules/locate-path/node_modules/path-exists/index.js
immosquare-cleaner-0.1.59 node_modules/pkg-dir/node_modules/find-up/node_modules/locate-path/node_modules/path-exists/index.js
immosquare-cleaner-0.1.58 node_modules/pkg-dir/node_modules/find-up/node_modules/locate-path/node_modules/path-exists/index.js
immosquare-cleaner-0.1.57 node_modules/pkg-dir/node_modules/find-up/node_modules/locate-path/node_modules/path-exists/index.js
immosquare-cleaner-0.1.56 node_modules/pkg-dir/node_modules/find-up/node_modules/locate-path/node_modules/path-exists/index.js
immosquare-cleaner-0.1.55 node_modules/pkg-dir/node_modules/find-up/node_modules/locate-path/node_modules/path-exists/index.js
immosquare-cleaner-0.1.54 node_modules/pkg-dir/node_modules/find-up/node_modules/locate-path/node_modules/path-exists/index.js
immosquare-cleaner-0.1.53 node_modules/pkg-dir/node_modules/find-up/node_modules/locate-path/node_modules/path-exists/index.js
immosquare-cleaner-0.1.52 node_modules/pkg-dir/node_modules/find-up/node_modules/locate-path/node_modules/path-exists/index.js
immosquare-cleaner-0.1.51 node_modules/pkg-dir/node_modules/find-up/node_modules/locate-path/node_modules/path-exists/index.js
immosquare-cleaner-0.1.50 node_modules/pkg-dir/node_modules/find-up/node_modules/locate-path/node_modules/path-exists/index.js
immosquare-cleaner-0.1.49 node_modules/pkg-dir/node_modules/find-up/node_modules/locate-path/node_modules/path-exists/index.js
immosquare-cleaner-0.1.48 node_modules/pkg-dir/node_modules/find-up/node_modules/locate-path/node_modules/path-exists/index.js
immosquare-cleaner-0.1.47 node_modules/pkg-dir/node_modules/find-up/node_modules/locate-path/node_modules/path-exists/index.js
immosquare-cleaner-0.1.46 node_modules/pkg-dir/node_modules/find-up/node_modules/locate-path/node_modules/path-exists/index.js
immosquare-cleaner-0.1.45 node_modules/pkg-dir/node_modules/find-up/node_modules/locate-path/node_modules/path-exists/index.js
immosquare-cleaner-0.1.44 node_modules/pkg-dir/node_modules/find-up/node_modules/locate-path/node_modules/path-exists/index.js
immosquare-cleaner-0.1.43 node_modules/pkg-dir/node_modules/find-up/node_modules/locate-path/node_modules/path-exists/index.js