img-url-to-imgur
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i img-url-to-imgur

Weekly Downloads

6

Version

1.0.0

License

Apache-2.0

Unpacked Size

13.6 kB

Total Files

6

Last publish

Collaborators

  • 1chi