
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Simple utility for collecting HTML files stats
Installation:
npm install [-g] html-stats
Usage:
html-stats struct '*/page.html'
html-stats selectors '*/page.html'
You can use any globs as file path.
Results are sizes in bytes of different page parts. Results keys:
<style />
elements,<script />
elements,Results presented in percentiles: 25, 50, 75, 95, 98, 100.
Results example:
{
"total": {
"25": 270837,
"50": 309765,
"75": 352189,
"95": 466561,
"98": 543257,
"100": 775025
},
"directives": {
"25": 15,
"50": 15,
"75": 15,
"95": 15,
"98": 15,
"100": 15
},
"tags": {
"25": 6000,
"50": 7056,
"75": 8137,
"95": 10677,
"98": 18927,
"100": 31225
},
"attributes": {
"25": 113650,
"50": 133711,
"75": 157262,
"95": 246005,
"98": 343876,
"100": 582644
},
"css": {
"25": 118373,
"50": 127444,
"75": 135806,
"95": 152970,
"98": 160236,
"100": 220013
},
"scripts": {
"25": 13183,
"50": 31699,
"75": 42651,
"95": 67124,
"98": 90352,
"100": 121464
},
"comments": {
"25": 57,
"50": 57,
"75": 57,
"95": 57,
"98": 57,
"100": 839
},
"text": {
"25": 6419,
"50": 7672,
"75": 8882,
"95": 11135,
"98": 27412,
"100": 36403
},
"spaces": {
"25": 10,
"50": 31,
"75": 62,
"95": 128,
"98": 179,
"100": 458
},
"rawTotal": {
"25": 270837,
"50": 309765,
"75": 352189,
"95": 466561,
"98": 543257,
"100": 775025
}
}
Results are selectors selector -> count
table.
Example:
{
".link": 16220,
".i-bem": 13016,
".serp-url__link": 5473,
".link_target_vertical-service": 2496,
".service": 2400,
".link_ajax_yes": 2370,
".navigation__item": 1920,
".serp-item__greenurl": 1633,
".serp-url": 1633,
".serp-url__item": 1537,
".clearfix": 1537,
".serp-item__title-link": 1249,
".favicon": 1249,
".favicon__icon": 1249,
".favicon_page_0": 1249,
".serp-item__title": 1249,
".serp-item": 1249,
".show-feedback": 1152,
".service_hoverable_yes": 1152,
".service__name": 1152,
".navigation__item_service_yes": 1152,
".link_service-link_yes": 1056,
".service__url": 1056,
".popup2_autoclosable_yes": 1056,
".popup2": 1056,
".link_pseudo_yes": 1056,
".link_cropped_no": 960,
".show-feedback_type_default": 960,
".serp-url__mark": 960,
".footer__link": 960,
".serp-url__arrow": 960,
".popup2_target_anchor": 960,
".popup2_theme_normal": 960,
".serp-url__popup": 960,
".serp-item__text": 960,
".needsclick": 960,
".related__item": 930,
".serp": 768,
".z-images__link": 768,
".navigation__item_extra_hidden": 672
}
FAQs
Utility for collecting HTML files stats
The npm package html-stats receives a total of 2 weekly downloads. As such, html-stats popularity was classified as not popular.
We found that html-stats 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
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.