Skip to content

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

Notifications You must be signed in to change notification settings

f97-2308/chevereto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chevereto

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

Usage

yarn add chevereto
# Or
npm install -save chevereto
const Chevereto = require('chevereto')

/*
 * With chevereto.example.com is the domain where you install chevereto
 * @param {*} host is a domain. (required)
 * @param {*} key api from chevereto. (get from https://chevereto.example.com/dashboard/settings/api) (required)
 */

const chevereto = new Chevereto({
  host: 'https://chevereto.f97.xyz',
  key: 'b7c188e055e26e6dce8b252a780dc068'
});

/**
 * @param {*} imageURL is a URL for an image. (up to 32 MB) (required)
 */
const imageURL = 'https://f97.xyz/image/avatar.png';
chevereto.upload(imageURL).then((res) => console.log(res)); 

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published