Sha256: 8065a621c333d64802ca7e132de37bf538cd980f87c3d6aaf08327fa1590955d
Contents?: true
Size: 655 Bytes
Versions: 4
Compression:
Stored size: 655 Bytes
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.stat = exports.exists = exports.readFile = void 0; const fs = require("fs"); const gensync = require("gensync"); const readFile = gensync({ sync: fs.readFileSync, errback: fs.readFile }); exports.readFile = readFile; const exists = gensync({ sync(path) { try { fs.accessSync(path); return true; } catch (_unused) { return false; } }, errback: (path, cb) => fs.access(path, undefined, err => cb(null, !err)) }); exports.exists = exists; const stat = gensync({ sync: fs.statSync, errback: fs.stat }); exports.stat = stat;
Version data entries
4 entries across 3 versions & 2 rubygems