Why another front-matter library?
This library is only 200 bytes 🤯 It's ultra light-weight because it doesn't really parse the front-matter, you can choose your language of choice to parse it instead, e.g. Yaml or Toml or even simply
yarn add @egoist/front-matter
const frontMatter =const head body =
const yaml =const frontMatter =const head body =const parsedHead = yaml
frontMatter(str, delimiter = '---')
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D