'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = readFile;

var _fs;

function _load_fs() {
  return _fs = _interopRequireDefault(require('fs'));
}

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function readFile(path) {
  return new Promise(function (resolve, reject) {
    (_fs || _load_fs()).default.readFile(path, function (err, res) {
      if (err) return reject(err);
      return resolve(res);
    });
  });
}