1.0.4 • Published 4 years ago

imgbbjs v1.0.4

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

imgbb

A lightweight Node.js module to easily upload images through imgbb API

Usage

yarn add imgbbjs
npm install -save imgbbjs
const Imgbb = require('imgbbjs')

const imgbb = new Imgbb({
  key: process.env.KEY,
});

/**
 * @param {*} IMAGE It can binary file, base64 data, or a URL for an image. (up to 32 MB) (required)
 * @param {*} NAME The name of the file (optional) 
 * @return {object} Response of request, status 400 or 200
 */
imgbb.upload(process.env.IMAGE, process.env.NAME).then(console.log); 
1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago