@giuseppecampanelli/medium-api

1.0.0 • Public • Published

Medium Node.js API

Node.js library to fetch recent Medium user posts.

Installation

To install Nuxt Native, start by downloading the repository and install its dependencies.

npm install @giuseppecampanelli/medium-api

Usage

// require library
const medium = require('@giuseppecampanelli/medium-api')

// get most recent profile posts
medium.profile.getRecentPosts('giuseppecampanelli').then(res => {
  // handle result
})

// get most recent post from publication
medium.publication.getRecentPost('javascript-in-plain-english', 0).then(res => {
  // handle result
})

Methods

Profile

  • getProfile(username)
  • getRecentPosts(username)
  • getRecentPost(username, post)

Publication

  • getPublication(publication)
  • getRecentPosts(publication)
  • getRecentPost(publication, post)

Topic

  • getTopic(topic)
  • getRecentPosts(topic)
  • getRecentPost(topic, post)

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @giuseppecampanelli/medium-api

Weekly Downloads

181

Version

1.0.0

License

MIT

Unpacked Size

10.2 kB

Total Files

9

Last publish

Collaborators

  • giuseppecampanelli