Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gunar/medium-parser

Parse medium.com posts to markdown
https://github.com/gunar/medium-parser

Last synced: 6 days ago
JSON representation

Parse medium.com posts to markdown

Awesome Lists containing this project

README

        

# medium-parser

A simple parser for Medium (html) into Markdown.

## Example usage

`npm install medium-parser`

then

```js
var parse = require('medium-parser');

var post = parse(htmlAsString);
/*
post == {
title: 'Post title',
headline: 'Headline from h2 tag',
author: 'Some author',
publishedTime: '2016-09-19T21:30:45.266Z',
markdown: '# Markdown\nAs string...',
}
*/
```

## Unit test

```
npm run test
```

## License

MIT [http://gunar.mit-license.org]()