Skip to content

mediremi/lobste.rs-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lobste.rs-node

Get lobste.rs stories. No dependencies.

npm install lobsters

Usage

Example:

var lobsters = require("lobsters")

// Get the hottest stories
lobsters(function(err, stories) {
  stories.forEach(function(story) {
    console.log(story.title)
  })
})

example.js shows you one way to lay out lobste.rs stories.

The wiki has a page showing you how to use lobste.rs-node with Emacs.

API

lobsters -> ([hottest|newest], callback)

The first argument is an optional string specifying which stories to get. The possible values are "hottest" and "newest"

This module follows node.js conventions by passing two arguments to callback: err and stories.

License

Released under the GNU GPLv3.

Copyright Médi-Rémi Hashim 2014.

See LICENSE

About

Get lobste.rs stories using node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published