readpost
Parse posts that are formated with Yaml and Markdown
Last updated 5 years ago by kchan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install readpost 
SYNC missed versions from official npm registry.

Readpost Build Status

Parse posts that are formated with Yaml and Markdown.

Installation

npm install --save readpost

Example

Meta is Yaml, Content is Markdown:

title: Hello World
categories:
  - life
  - random
---
Tomorrow is another **day**, oh uptown funk you up. 

Usage:

const readpost = require('readpost');
const post = fs.readFileSync('./post.md', 'utf8');
const data = readpost(post);
// output:
{
  meta: Object,
  content: String
}

License

MIT © EGOIST

Current Tags

  • 0.1.2                                ...           latest (5 years ago)

4 Versions

  • 0.1.2                                ...           5 years ago
  • 0.1.11                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |