Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gunar/medium-parser
Parse medium.com posts to markdown
https://github.com/gunar/medium-parser
Last synced: 7 days ago
JSON representation
Parse medium.com posts to markdown
- Host: GitHub
- URL: https://github.com/gunar/medium-parser
- Owner: gunar
- Created: 2016-02-19T17:06:27.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-11T03:50:45.000Z (over 6 years ago)
- Last Synced: 2024-12-02T00:49:06.723Z (25 days ago)
- Language: HTML
- Homepage:
- Size: 202 KB
- Stars: 19
- Watchers: 2
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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]()