1.0.0 • Published 3 years ago

img-url-to-imgur v1.0.0

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
3 years ago

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