1.3.2 • Published 2 years ago

chevereto v1.3.2

Weekly downloads
7
License
MIT
Repository
github
Last release
2 years ago

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

2 years ago

1.3.0

2 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.2

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago