sounisi5011/metalsmith-netlify-published-date

Parse Microdata or JSON-LD in preview to get published date and modified date

Opened this issue ยท 1 comments

The Netlify preview is like a cache that holds its own past state.
It is more efficient to get the published date and modified date from the deployed preview page itself, rather than a dedicated cache file that is kept or ambiguous.

It is considered common to describe the published date and modified date of pages using Microdata or JSON-LD.
Therefore, I propose the addition of a function to analyze this.

I could find some npm packages that parse Microdata and JSON-LD.

This attempt should not be impossible.

I could find some npm packages that parse Microdata and JSON-LD.

Some packages were tools that depended on another package:

And these packages were forked:

Except for these packages, the remaining candidates are:

  • web-auto-extractor
  • htmlmetaparser
    • ๐Ÿ‘ TypeScript type definition is included.
    • ๐Ÿ‘ There is only one package in a dependency. I do not struggle with maintenance.
    • ๐Ÿ‘Ž The last publish date is one years ago.
  • html-metadata
    • ๐Ÿ‘ Created by Wikimedia.
    • ๐Ÿ‘Ž The last publish date is two years ago.