get the markdown file meta | 获取markdown文件meta信息
MIT License
transfer markdown content meta part to object
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'
Follow MIT LICENSE