1
Fork 0
solar-conflux/typescript/translucid/read.js
Matei Adriel ed416caf08
typescript(translucid): idk anymore
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-01-20 12:45:23 +02:00

14 lines
364 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fs = require('fs');
function read(url) {
return new Promise((resolve, reject) => {
fs.readFile(`${__dirname}/../../${url}`, "utf8", (err, data) => {
if (err)
reject(err);
resolve(data);
});
});
}
exports.read = read;