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
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
tools
.editorconfig
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
handler.js
package.json
rollup.config.ts
serverless-example.yml
tsconfig.json
tslint.json
yarn.lock

README.md

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

You can’t perform that action at this time.