Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

img-url-to-imgur

1chiSensei10Apache-2.01.0.0TypeScript support: included

upload an image url to imgur

img, imgur, imgurl

readme

img-url-to-imgur

upload an image url to imgur

example

// using .then
const ImgurUpload = require('img-url-to-imgur');
const uploader = new ImgurUpload('your imgur client id here');

uploader.upload('image url').then(a => console.log(a));

// using async/await
const ImgurUpload = require('img-url-to-imgur');
const uploader = new ImgurUpload('your imgur client id here');
(async () => {
    const url = await uploader.upload('image url');
    console.log(url);
})();

NPM Page