0.1.2 • Published 5 years ago
md-meta v0.1.2
md-meta
transfer markdown content meta part to object
Example
const str =`---
title: foo
author: himself65
---
something
`
const res = parseMeta(str)
console.log(res.title) // 'foo'
console.log(res.author) // 'himself65'
const md = removeMeta(str)
console.log(md) // 'something'
LICENSE
Follow MIT LICENSE