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

imgur-node

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imgur-node

An easy-to-use wrapper for version 3 of the imgur API.

  • 0.2.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by166.67%
Maintainers
1
Weekly downloads
 
Created
Source

imgur-node

An easy-to-use Node.JS wrapper for version 3 of the imgur API.

Installation
npm install --save imgur-node
Example Code
// Get album information using a Client.
const Imgur = require('imgur-node');
const client = new Imgur.Client('<CLIENT_ID>');

client.album.get('hlF1z', (err, res) => {
  if (err) console.error(err);
  console.log(res);
});
// Get album information without using a Client.
const imgur = require('imgur-node');

imgur.album.get('<CLIENT_ID>', 'hlF1z', (err, res) => {
  if (err) console.error(err);
  console.log(res);
});
// Get album information using request().
const imgur = require('imgur-node');

let options = {
  clientID: '<CLIENT_ID>',
  method: 'GET',
  path: '/album/hlF1z'
};

imgur.request(options, (err, res) => {
  if (err) console.error(err);
  console.log(res);
});

Documentation

License

This project uses GPL-3.0. For more information, click here.

Keywords

FAQs

Package last updated on 20 Oct 2016

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