crack-a-bottle - v0.1.4

crack-a-bottle

High-quality image cracking/parsing tools.

Installation

$ npm install crack-a-bottle

Importing

This package can be imported using CJS or ESM.

const crackabottle = require("crack-a-bottle");
import * as crackabottle from "crack-a-bottle";

Usage

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);
});

Documentation

The documentation can be found here.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Generated using TypeDoc