Sha256: 4dfe772a81e7df8a74c13a4c017f3e0b0c1372c183cb87c35bf8708627460eb3

Contents?: true

Size: 234 Bytes

Versions: 11

Compression:

Stored size: 234 Bytes

Contents

"use strict";

module.exports = function (fileSystem, filename) {
  var exists = false;

  try {
    exists = fileSystem.statSync(filename).isFile();
  } catch (err) {
    if (err.code !== "ENOENT") throw err;
  }

  return exists;
};

Version data entries

11 entries across 9 versions & 5 rubygems

Version Path
ilog-0.4.1 node_modules/babel-loader/lib/utils/exists.js
ilog-0.4.0 node_modules/babel-loader/lib/utils/exists.js
ilog-0.3.3 node_modules/babel-loader/lib/utils/exists.js
optimacms-0.4.3 spec/dummy/node_modules/@rails/webpacker/node_modules/babel-loader/lib/utils/exists.js
optimacms-0.4.3 spec/dummy/node_modules/babel-loader/lib/utils/exists.js
optimacms-0.4.2 spec/dummy/node_modules/babel-loader/lib/utils/exists.js
optimacms-0.4.2 spec/dummy/node_modules/@rails/webpacker/node_modules/babel-loader/lib/utils/exists.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/babel-loader/lib/utils/exists.js
locomotivecms-3.4.0 app/javascript/node_modules/babel-loader/lib/utils/exists.js
cortex-0.1.3 spec/dummy/node_modules/babel-loader/lib/utils/exists.js
dragonfly_puppeteer-0.1.0 node_modules/babel-loader/lib/utils/exists.js