🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.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
Version published
Weekly downloads
1
-87.5%
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

imgur

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