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

Version Path
trusty-cms-5.0.7 node_modules/@babel/core/lib/gensync-utils/fs.js
trusty-cms-5.0.6 node_modules/@babel/core/lib/gensync-utils/fs.js
trusty-cms-5.0.5 node_modules/@babel/core/lib/gensync-utils/fs.js
trusty-cms-5.0.4 node_modules/@babel/core/lib/gensync-utils/fs.js
trusty-cms-5.0.3 node_modules/@babel/core/lib/gensync-utils/fs.js
trusty-cms-5.0.2 node_modules/@babel/core/lib/gensync-utils/fs.js
trusty-cms-5.0.1 node_modules/@babel/core/lib/gensync-utils/fs.js
trusty-cms-4.3.5 node_modules/@babel/core/lib/gensync-utils/fs.js
trusty-cms-5.0.0 node_modules/@babel/core/lib/gensync-utils/fs.js
trusty-cms-4.3.4 node_modules/@babel/core/lib/gensync-utils/fs.js
trusty-cms-4.3.3 node_modules/@babel/core/lib/gensync-utils/fs.js
trusty-cms-4.3.2 node_modules/@babel/core/lib/gensync-utils/fs.js
trusty-cms-4.3.1 node_modules/@babel/core/lib/gensync-utils/fs.js
trusty-cms-4.3 node_modules/@babel/core/lib/gensync-utils/fs.js
trusty-cms-4.2.3 node_modules/@babel/core/lib/gensync-utils/fs.js
trusty-cms-4.2.2 node_modules/@babel/core/lib/gensync-utils/fs.js
trusty-cms-4.2.1 node_modules/@babel/core/lib/gensync-utils/fs.js
trusty-cms-4.2 node_modules/@babel/core/lib/gensync-utils/fs.js
trusty-cms-4.1.9 node_modules/@babel/core/lib/gensync-utils/fs.js
trusty-cms-4.1.8 node_modules/@babel/core/lib/gensync-utils/fs.js