0.2.4 • Published 8 years ago

node-9gag v0.2.4

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

node-9gag

A simple API for accessing 9gag

Installation

npm install node-9gag

##Usage

var gag = require('node-9gag')
  • Find a post on 9gag
gag.find('query', function (err, res) {
  // res = [
  //   {
  //     query: ,
  //     sectionHeader: ,
  //     result: {
  //       title: ,
  //       id: ,
  //       url: ,
  //       image:
  //     }
  //   }
  // ]
});
  • Get details of a post from its id
gag.getItem('id', function (err, res) {
  // res = {
  //   title: ,
  //   points: ,
  //   commentCount: ,
  //   image:
  // }
});
  • Access a section on 9gag (defaults to hot)
gag.section('section'[, hot/fresh], function (err, res) {
  // res = [
  //   {
  //     title: null,
  //     id: null,
  //     url: null,
  //     image: null,
  //     points: null,
  //     commentCount: null
  //   }
  // ]
});
0.2.4

8 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago