Get Medium posts of an account in JSON format
medium-articles is an unofficial package for getting medium posts of an account.
$ npm install medium-articles
OR
$ yarn add medium-articles
This module uses rss-parser under the hood to work.
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)
...
}
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)
...
}
- username //example - vue
- @username //example - @vue
Install packages
$ npm install
Build
$ npm run build
Test
$ npm run test