Sha256: 7fcf9568821050e33ed499677e5b38b5d2376beab17197d5563b1cbb89feb475
Contents?: true
Size: 947 Bytes
Versions: 25
Compression:
Stored size: 947 Bytes
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.exists = exports.readFile = void 0; function _fs() { const data = _interopRequireDefault(require("fs")); _fs = function () { return data; }; return data; } function _gensync() { const data = _interopRequireDefault(require("gensync")); _gensync = function () { return data; }; return data; } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } const readFile = (0, _gensync().default)({ sync: _fs().default.readFileSync, errback: _fs().default.readFile }); exports.readFile = readFile; const exists = (0, _gensync().default)({ sync(path) { try { _fs().default.accessSync(path); return true; } catch (_unused) { return false; } }, errback: (path, cb) => _fs().default.access(path, undefined, err => cb(null, !err)) }); exports.exists = exists;
Version data entries
25 entries across 25 versions & 3 rubygems