JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14
  • Score
    100M100P100Q26834F
  • License ISC

Convert Medium.com's RSS feed into a JSON object.

Package Exports

  • medium2json
  • medium2json/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (medium2json) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

medium2json

Converts your Medium.com profile's posts into a JSON object.

How to Install

Run npm i medium2json in your project directory.

How to Use

You can use its getPosts function to get the posts for a particular user, all you need is a username.

const medium2json = require('medium2json');

async function getObj (username) {
  let posts = await medium2json.getPosts(username);
  console.log(posts)
}

getObj('andretaiwx');

Note

Medium.com's RSS feed does not return all the posts for a particular user, just 10 IIRC.

GitHub - https://github.com/andretai/medium2json.git

npmjs.com - https://www.npmjs.com/package/medium2json