medium-articles
Get Medium posts of an account in JSON format
medium-articles is an unofficial package for getting medium posts of an account.
Install
$ npm install medium-articles
OR
$ yarn add medium-articles
This module uses rss-parser under the hood to work.
Usage with ES6
import { getMediumPosts } from 'medium-articles'
const username = "your medium account username"
async () => {
// This will give you all of your medium posts in JSON format.
const articles = await getMediumPosts(username)
...
}
Node Js usage
const getMediumPosts = require('medium-articles')
const username = "your medium account username"
async () => {
// This will give you all of your medium posts in JSON format.
const articles = await getMediumPosts(username)
...
}
Allowed username format
- username //example - vue
- @username //example - @vue
Development
Install packages
$ npm install
Build
$ npm run build
Test
$ npm run test