Socket
Socket
Sign inDemoInstall

imgur-node

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

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.


Version published
Maintainers
1
Weekly downloads
5
increased by400%

Weekly downloads

Readme

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

Last updated on 20 Oct 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc