Skip to content

Fetches data from the public Medium JSON feed, parses publication and story data into usable JavaScript objects, and creates a Markdown version of the Story

License

Notifications You must be signed in to change notification settings

franklintarter/node-medium-feed

Repository files navigation

Node Medium Feed

Travis

Quickstart

yarn add node-medium-feed
# or
npm install node-medium-feed
import { getLatest, getStory } from 'node-medium-feed'

const story = await getStory('[user-or-publication]', 'story-unique-slug')
const markdown = story.content.toMarkdown()

const latest = await getLatest('[user-or-publication]')

// ..

Dev

yarn
yarn test:watch

Deploy

Copy, edit & rename serverless-example.yml as serverless.yml

yarn deploy-serverless

Example App

CLI

References

Project boilerplate provided by TypeScript Library Starter

About

Fetches data from the public Medium JSON feed, parses publication and story data into usable JavaScript objects, and creates a Markdown version of the Story

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published