1.0.48 • Published 4 years ago

imgbb v1.0.48

Weekly downloads
44
License
ISC
Repository
github
Last release
4 years ago

ws-rest README

Imgbb's API v1 allows to upload pictures.

install

yarn add imgbb

demo

import ApiClient from 'imgbb';
import consoleDebug from 'restful-decorator/lib/util/debug';
import fs from 'fs-extra';

(async () =>
{

 let api = new ApiClient({
  token: 'YOUR_CLIENT_API_KEY',
 });

 let ret = await api.upload({
   /**
    * A binary file, base64 data, or a URL for an image. (up to 16MB)
    */
   image: await fs.readFile('./miku_small.png'),
  })
  .catch(e => consoleDebug.red.dir(e))
 ;

 console.dir(ret);

})();
1.0.48

4 years ago

1.0.47

4 years ago

1.0.46

4 years ago

1.0.45

4 years ago

1.0.44

4 years ago

1.0.43

4 years ago

1.0.42

4 years ago

1.0.41

4 years ago

1.0.40

4 years ago

1.0.38

5 years ago

1.0.37

5 years ago

1.0.36

5 years ago

1.0.35

5 years ago

1.0.34

5 years ago

1.0.33

5 years ago

1.0.31

5 years ago

1.0.30

5 years ago

1.0.29

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.26

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago