Cleanup and add pkg

This commit is contained in:
Surma
2019-02-06 10:25:56 +00:00
parent 8faf8a5b48
commit cf45520be3
25 changed files with 307 additions and 308 deletions

14
codecs/oxipng/pkg/lol.js Normal file
View File

@@ -0,0 +1,14 @@
const oxipng = require("./oxipng_wasm");
const repl = require("repl");
const fs = require("fs");
async function init() {
// const img = fs.readFileSync("img.png")
// const output = oxipng.compress(img, 0);
// fs.writeFileSync("output.png", output);
console.log(">>>", oxipng.doit());
const r = repl.start("node> ");
r.context.i = oxipng;
}
init();