css-audit
css-audit copied to clipboard
Enhancement: Include Timestamp and Version in JSON Report Output
Fixes #91
This enhancement adds two new metadata fields to the JSON report output:
generatedAt– An ISO 8601 timestamp indicating when the report was generated.version– The current tool version retrieved frompackage.json.
The original audit data is now nested under a top-level reports key, ensuring the metadata is clearly separated from the actual results.
Example Output:
{
"generatedAt": "2025-07-22T17:04:53.794Z",
"version": "1.0.0",
"reports": [
[
{
"rule": "color-contrast",
"result": "fail"
},
{
"rule": "font-size",
"result": "pass"
}
]
]
}
Hi @ryelle 👋 — I’ve opened a PR to add the generatedAt and version fields to the JSON report output. This should help clarify when reports were generated and which tool version was used. Let me know if you have any suggestions!
heyy @yogendradayal can you assign this work??