Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dwwoelfel/backmatter
Markdown metadata for those times when frontmatter just won't do.
https://github.com/dwwoelfel/backmatter
Last synced: 7 days ago
JSON representation
Markdown metadata for those times when frontmatter just won't do.
- Host: GitHub
- URL: https://github.com/dwwoelfel/backmatter
- Owner: dwwoelfel
- Created: 2020-04-07T23:26:32.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T10:22:17.000Z (about 2 years ago)
- Last Synced: 2025-02-14T14:57:03.602Z (7 days ago)
- Language: JavaScript
- Size: 3.26 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# backmatter
## Installation
```sh
yarn add backmatter
```## Usage
```javascript
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"```