1.1.1 • Published 4 years ago

jsonga v1.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

JsonGA npm npmDL

Named after Jenga, because this codebase is a mess; alongside where the format even comes from

JsonGA is a soon-powerful library that processes images to the glorious JSON-G image format, and converts that format back into an image.

Features

  • Object-oriented.
  • Uses JSON-G.
  • Utilizes no native libraries.
  • Probably never gonna get used.

Installation

Node.js v10, or above is required for this module.

npm install jsonga

Examples

Read JSON-G File
const JsonGA = require("jsonga");
const jsong = new JsonGA.Picture(__dirname + "/demo.jsong");

jsong.draw().then((picture) => {
    picture.save(__dirname + "/demo_draw.png")
})

Read Picture

const JsonGA = require("jsonga");
const picture = new JsonGA.Picture(__dirname + "/demo.png");

picture.format().then((pic) => {
    pic.save(__dirname + "/demo.jsong")
})

Links

Contributing

Please don't.

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago