Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sounisi5011 opened this issue Jul 24, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@sounisi5011
Copy link
Owner

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.

@sounisi5011 sounisi5011 added the enhancement New feature or request label Jul 24, 2019
@sounisi5011
Copy link
Owner Author

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.

@sounisi5011 sounisi5011 mentioned this issue Aug 2, 2019
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant