
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
data-qa-report
Advanced tools
Build a report on the use or not use of the data-qa attributes in the code
data-qa attribute reporting tool.
The idea is to allow the team to quickly highlight elements with data-qa attributes and those without. Where in the code the items code can be found and ultimately where on your website or app the element can be found.
The output will be written to disk or if no input passed it will log to the console.
The report format is IFinalReport
found in, types/index.ts, but see further below for an example JSON output.
data-qa
attributes on the elements that match the given CSS SelectorsSee: https://github.com/j-d-carmichael/data-qa-report/issues
In the project on github you will see in the package json a script that runs the tool that would be run when you install from npm like:
data-qa-report --input ./test/code-to-report-on --output ./test/report-output --css-selector 'APP-LT-BUTTON'
It will:
test/code-to-report-on
./test/report-output
APP-LT-BUTTON
The output from the test file results in:
{
"filesReport": [
{
"ext": "html",
"absolutePath": "/mnt/linuxdrive/code/opensource/data-qa-report/test/code-to-report-on/login.page.html",
"relativePath": "/test/code-to-report-on/login.page.html",
"resultsWithDataQa": [
{
"dataQaValue": "login-form-submit",
"nodeName": "APP-LT-BUTTON",
"xpath": "ION-CONTENT > ION-GRID > ION-ROW > ION-COL > FORM > APP-LT-BUTTON.button-login"
},
{
"dataQaValue": "forgot-password-cancel-button",
"nodeName": "APP-LT-BUTTON",
"xpath": "ION-CONTENT > ION-GRID > ION-ROW > ION-COL > FORM > DIV > APP-LT-BUTTON"
},
{
"dataQaValue": "forgot-password-form-submit",
"nodeName": "APP-LT-BUTTON",
"xpath": "ION-CONTENT > ION-GRID > ION-ROW > ION-COL > FORM > DIV > APP-LT-BUTTON"
}
],
"resultsWithoutDataQa": [
{
"nodeName": "APP-LT-BUTTON",
"xpath": "ION-CONTENT > ION-GRID > ION-ROW > ION-COL > NG-CONTAINER > APP-LT-BUTTON.email-login-button"
}
]
}
],
"quantities": {
"withDataQa": 3,
"withoutDataQa": 1
},
"nodeNames": [
"APP-LT-BUTTON"
]
}
FAQs
Build a report on the use or not use of the data-qa attributes in the code
The npm package data-qa-report receives a total of 8 weekly downloads. As such, data-qa-report popularity was classified as not popular.
We found that data-qa-report demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.