backmatter

1.0.0 • Public • Published

backmatter

Installation

yarn add backmatter

Usage

import {removeBackmatter, extractBackmatter} from 'backmatter';

const md = `# Hello world

\`\`\`backmatter
{"meta": "data"}
\`\`\`
`;

const backmatter = extractBackmatter(md);
// backmatter = {meta: "data"}
const removed = removeBackmatter(md);
// removed = "# Hello world\n\n"

Readme

Keywords

none

Package Sidebar

Install

npm i backmatter

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

662 kB

Total Files

11

Last publish

Collaborators

  • dww