gray-matter@4.0.3
// Parse front-matter from a string or file. Fast, reliable and easy to use. Parses YAML front matter by default, but also has support for YAML, JSON, TOML or Coffee Front-Matter, with options to set custom delimiters. Used by metalsmith, assemble, verb and
$ npm install gray-matter
downloads/wk
7,113,616
license
MIT
version
4.0.3
published
Apr 24, 2021
What is gray-matter?
gray-matter is a parser that extracts front-matter metadata from strings or files, commonly used with markdown documents. It supports YAML by default but also handles JSON, TOML, and CoffeeScript formats, with customizable delimiters for different use cases. Developers use it to separate structured data from content in static site generators, documentation tools, and template processing workflows.
Links
Keywords
Dependencies (4)
Maintainers
jonschlinkert, doowb, rmassaioli