my-imgur
v1.0.2
Published
It's an image upload module by imgur
Downloads
1
Readme
"# my-imgur"
npm registry:-https://www.npmjs.com/package/my-imgur
Module Usage
Installation
Install the project dependencies.You can use npm or yarn(recommended) for dependency management。
## npm
npm i my-imgur
Usage
You can through this website to get your project's client id.
https://api.imgur.com/oauth2/addclient
// Requiring the module
const imgur = require('my-imgur');
// intilize client id
imgur.setClientId('Your Client Id');
// uploading image file
imgur.uploadImgur(yourFile).then((result) => {
console.log(result);
});