crack-a-bottle
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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.

Dependencies (3)

Dev Dependencies (2)

Package Sidebar

Install

npm i crack-a-bottle

Weekly Downloads

0

Version

0.1.4

License

MIT

Unpacked Size

3.57 kB

Total Files

7

Last publish

Collaborators

  • hiimjustin000