declapract
Version:
A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.
12 lines • 591 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.readFileAsync = exports.readFile = void 0;
const fs_1 = __importDefault(require("fs"));
const util_1 = __importDefault(require("util"));
exports.readFile = util_1.default.promisify(fs_1.default.readFile);
const readFileAsync = ({ filePath, }) => (0, exports.readFile)(filePath, 'utf8');
exports.readFileAsync = readFileAsync;
//# sourceMappingURL=readFileAsync.js.map