An open API service indexing awesome lists of open source software.

https://github.com/violetics/jimp

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

api javascript jimp npm violetics wrapper

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

          

## Violetics API Jimp

> **_Jimp API Wrapper for https://violetics.pw/api/jimp_**

```diff
@@ 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

```javascript
"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

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

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