@violetics/jimp

1.0.0 • Public • Published

Violetics API Jimp

Jimp API Wrapper for https://violetics.pw/api/jimp

@@ Created on 22-03-22 | Violetics @@

Installation

using npm package manager

npm install @violetics/jimp

using yarn package manager

yarn add @violetics/jimp

Example Request

"use strict";
const fs = require("fs");
const Violetics = require("@violetics/jimp");
const v = new Violetics("API_KEY"); // register on https://violetics.pw/ to get your own apikey

/* then, catch */
v.tahta("Violetics")
	.then((data) => {
		let { type, buffer } = data;
		fs.writeFileSync(`./result.${type.ext}`, buffer);
		console.info("done");
	})
	.catch(console.error);

/* callback */
v.tahta("Violetics", (error, data) => {
	if (error) return console.error(error);
	let { type, buffer } = data;
	fs.writeFileSync(`./result.${type.ext}`, buffer);
	console.info("done");
});

Information

+ dont forget to star <3
! contribute to this project! ~~~
- please add issue if you having problem with installation

! github: https://github.com/Violetics/jimp

Package Sidebar

Install

npm i @violetics/jimp

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

147 kB

Total Files

15

Last publish

Collaborators

  • violetics