High-quality image cracking/parsing tools.
$ npm install crack-a-bottle
This package can be imported using CJS or ESM.
const crackabottle = require("crack-a-bottle");
import * as crackabottle from "crack-a-bottle";
const fs = require("fs");
const { png } = require("crack-a-bottle");
fs.readFile("image.png", (err, data) => {
if (err) throw err;
const image = png(data);
console.log(image);
});
const fs = require("fs");
const { qoi } = require("crack-a-bottle");
fs.readFile("image.qoi", (err, data) => {
if (err) throw err;
const image = qoi(data);
console.log(image);
});
The documentation can be found here.
This project is licensed under the MIT License. See the LICENSE file for more details.
Generated using TypeDoc