Skip to content

bernkastel02/jsonga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JsonGA npm npmDL codefactor Travis CI

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.
  • Lightweight

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.

About

⭐ Best JSON-G Library, namely for JS and eventually, image manipulation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published