gray-matter is a JavaScript library for parsing front matter from strings or files. It is commonly used in static site generators, documentation systems, content pipelines, and Markdown-based publishing tools. The library parses YAML front matter by default, but it can also work with JSON, TOML, CoffeeScript-style front matter, and custom parsers. It returns the content body and extracted metadata as a structured object that applications can process easily. Its parser is designed to be faster and more reliable than simple regular-expression approaches, especially around edge cases. ...