gray-matter
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
1
Versions
MIT
License
No
Install Scripts
Missing
Provenance
Supply chain provenance
Status for the latest visible version.
No SLSA provenance
npm registry signatures
gitHead linked
Without SLSA provenance there is no cryptographic link between this tarball and the public source — the axios compromise (March 2026) relied on exactly this gap.
Maintainers
jonschlinkertdoowbrmassaioli
Keywords
assemblecoffeecoffee-scriptdatadocsdocumentationextractextractingfrontfront-matterfrontmattergenerategeneratorgh-pagesgrayjavascriptjekylljsJSONmarkdownmatterparseparserparsingsitestatictemplatetomlyamlyfm
Accepted risks
Findings the reviewer chose to accept rather than block on.
| Source | Rule | Reason | Accepted by | When |
|---|---|---|---|---|
| semgrep | semgrep:eval-usage | AI (semgrep): eval() in lib/engines.js is gray-matter's intentional JS front-matter engine, evaluating user-controlled front-matter content. This is documented behavior, not a supply-chain risk. | ai | |
| dependencies | unvetted-dep:section-matter | AI (dependencies): section-matter is a small utility by jonschlinkert, the same author as gray-matter. Stable, well-known dependency with no risk signals. | ai | |
| dependencies | unvetted-dep:strip-bom-string | AI (dependencies): strip-bom-string is a small utility by jonschlinkert. Stable, well-known dependency with no risk signals. | ai |
Versions (showing 1 of 1)
| Version | Deps | Published |
|---|---|---|
| 4.0.3 | 4 / 12 |