1
Fork 0

typescript(translucid): first commit

Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
Matei Adriel 2019-01-19 22:41:54 +02:00 committed by prescientmoon
commit 62b1390b18
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
8 changed files with 498 additions and 0 deletions
typescript/translucid

View file

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