jonschlinkert / gray-matter

Smarter YAML front matter parser, used by metalsmith, Gatsby, Netlify, Assemble, mapbox-gl, phenomic, vuejs vitepress, TinaCMS, Shopify Polaris, Ant Design, Astro, hashicorp, garden, slidev, saber, sourcegraph, and many others. Simple to use, and battle tested. Parses YAML by default but can also parse JSON Front Matter, Coffee Front Matter, TOML Front Matter, and has support for custom parsers. Please follow gray-matter's author: https://github.com/jonschlinkert

Home Page:https://github.com/jonschlinkert

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

typescript issues - is this package deprecated?

pavlexander opened this issue · comments

I have found an issue with what looks like typescript definition problem.

This is the JSON.stringify output of GrayMatterFile object:

{                                                                 
  content: 'test2',                          
  data: { title: 'test1' },                                       
  isEmpty: false,                                                 
  excerpt: '',                                                    
  path: 'C:\\supersecret\\public\\docs\\test1.md'
}         

However there is no path property on the object as well as other inconsistencies, according to typescript:

image

I wanted to report a bug, but based on amount of unmerged pull-requests and last commit date it looks like this project is dead?

Does anybody know if there is a better alternative that is still supported?