Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

imgur-uploader

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imgur-uploader

Upload images to imgur

  • 4.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
97
increased by25.97%
Maintainers
1
Weekly downloads
 
Created
Source

imgur-uploader Build Status

Upload images to imgur

Install

$ npm install --save imgur-uploader

Usage

const fs = require('fs');
const imgurUploader = require('imgur-uploader');

imgurUploader(fs.readFileSync('cat.jpg'), {title: 'Hello!'}).then(data => {
	console.log(data);
	/*
	{
		id: 'OB74hEa',
		link: 'http://i.imgur.com/jbhDywa.jpg',
		title: 'Hello!',
		date: Sun May 24 2015 00:02:41 GMT+0200 (CEST),
		type: 'image/jpg',
		...
	}
	*/
});

API

imgurUploader(input, [options])

input

Type: Buffer

Image to upload.

options

See the imgur options in addition to the ones below.

token

Type: string
Default: Client-ID 34b90e75ab1c04b

Override the default authorization token (you probably want to).

License

MIT © Kevin Martensson

Keywords

FAQs

Package last updated on 12 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc