/lumina-wrapper

An Wrapper for the Lumina API to make it easier to use the API

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

lumina-wrapper

A NPM to handle the summon api

Text usage / something that returns a JSON output

DO NOT USE IMAGE ENDPOINTS HERE IT WILL ERROR

const API = require("lumina-wrapper.js")
const api = new API()

api.get("<type here>", "<endpoint here>").then(res => console.log(res))

Image usage (this returns a buffer)

const API = require("lumina-wrapper.js")
const api = new API()

api.getImage("burn", { text: "<text here" }).then(res => /*do something with 'res' this returns a buffer*/)