medium-articles
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

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

  1. username //example - vue
  2. @username //example - @vue

Development

Install packages

$ npm install

Build

$ npm run build

Test

$ npm run test

Package Sidebar

Install

npm i medium-articles

Weekly Downloads

1

Version

1.0.9

License

ISC

Unpacked Size

6.93 kB

Total Files

6

Last publish

Collaborators

  • thealoneprogrammer