Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
css-optimization
Advanced tools
This tool uses puppeteer's coverage feature to output an optimized CSS file.
This tool uses puppeteer's coverage feature to output an optimized CSS file.
As a feature of the tool, by using pupperium, user can operate puppeteer with the yaml file.
Media query and font-face, etc. are not deleted because PostCSS AST node is used.
$ npm install -g css-optimization
$ css-optimization -p <caseDir> -i <imgDir> -c <cssDir>
$ css-optimization --help
Usage: css-optimization [options]
Options:
-V, --version output the version number
-p, --path <caseDir> cases root dir
-i, --image-dir <imgDir> screehshots dir
-c, --css-dir <cssDir> optimize css dir
-h, --disable-headless disable headless mode
-h, --help output usage information
name: demo
url: 'http://example.com/'
userAgent: 'bot'
steps:
- action:
type: hover
selector: '.fuga'
- action:
type: click
selector: '.hoge'
- action:
type: wait
duration: 500
- action:
type: select
selector: '.fuga'
- action:
type: focus
selector: '.fuga'
- action:
type: screenshot
name: 'demo'
$ git clone https://github.com/toshi1127/css-optimization.git
$ cd cli
$ npm install
$ npm run build
$ npm run start:demo
FAQs
This tool uses puppeteer's coverage feature to output an optimized CSS file.
The npm package css-optimization receives a total of 0 weekly downloads. As such, css-optimization popularity was classified as not popular.
We found that css-optimization 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.