imgbbjs

1.0.4 • Public • Published

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); 

Readme

Keywords

none

Package Sidebar

Install

npm i imgbbjs

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

2.77 kB

Total Files

6

Last publish

Collaborators

  • f97