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

Version Path
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/@babel/core/lib/gensync-utils/fs.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/@babel/core/lib/gensync-utils/fs.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/@babel/core/lib/gensync-utils/fs.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/@babel/core/lib/gensync-utils/fs.js