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"

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.01latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.01

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