backmatter
1.0.0 • Public • Published backmatter
Installation
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
Version | Downloads (Last 7 Days) | Tag |
---|
1.0.0 | 1 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
1.0.0 | 1 | |
Package Sidebar
Install
Weekly Downloads