md-meta
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

md-meta

transfer markdown content meta part to object

Build Status codecov npm downloads version repo LICENSE

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

Readme

Keywords

none

Package Sidebar

Install

npm i md-meta

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

157 kB

Total Files

10

Last publish

Collaborators

  • himself65