0.0.6 • Published 10 years ago

medium-node v0.0.6

Weekly downloads
26
License
SEE LICENSE IN LI...
Repository
github
Last release
10 years ago

medium-node

Simple JS-based wrapper for Medium JSON user feeds

Installation

 npm install medium-node

Usage

This class accepts a medium.com username in the constructor and offers one function, fetch(), which returns a Promise for that user's most recent posts on Medium. No pagination support yet; only the latest posts are available.

var Medium = require('medium-node');
var user = new Medium('username')

var userFeed = user.fetch();
userFeed.then(function(latest) {
  console.log(latest.references.Post);
});

The response format is undocumented, but you can see an example here. This module only returns the "payload" section. Take a look at references.Post for the latest posts.

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago