Gathering detailed insights and metrics for posthtml-postcss-treeshaker
Gathering detailed insights and metrics for posthtml-postcss-treeshaker
npm install posthtml-postcss-treeshaker
Typescript
Module System
Min. Node Version
Node Version
NPM Version
52.9
Supply Chain
81.7
Quality
74.4
Maintenance
50
Vulnerability
100
License
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
1,242
Last Day
1
Last Week
2
Last Month
16
Last Year
83
MIT License
3 Stars
13 Commits
3 Watchers
17 Branches
10 Contributors
Updated on Mar 31, 2021
Latest Version
0.3.0
Package Id
posthtml-postcss-treeshaker@0.3.0
Unpacked Size
6.12 kB
Size
2.82 kB
File Count
5
NPM Version
6.14.5
Node Version
10.15.3
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-60%
2
Compared to previous week
Last Month
700%
16
Compared to previous month
Last Year
2.5%
83
Compared to previous year
A posthtml
plugin to treeshake class and id styling in style
tag on html page using postcss
[![Coverage][cover]][cover-badge]
This plugin is used for reducing your file size
Before:
1<html> 2 <body> 3 <p class="used">HELLO</p> 4 <style> 5 .used { 6 color: red; 7 } 8 .unused { 9 color: green; 10 } 11 </style> 12 </body> 13</html>
After:
1<html> 2 <body> 3 <p class="used">HELLO</p> 4 <style> 5 .used { 6 color: red; 7 } 8 </style> 9 </body> 10</html>
npm i posthtml posthtml-postcss-treeshaker
Describe how people can use this plugin. Include info about build systems if it's necessary.
1const fs = require("fs"); 2const posthtml = require("posthtml"); 3const posthtmlPlugin = require("posthtml-postcss-treeshaker"); 4 5posthtml() 6 .use( 7 posthtmlPlugin({ 8 /* options */ 9 }) 10 ) 11 .process(html /*, options */) 12 .then(result => fs.writeFileSync("./after.html", result.html));
See PostHTML Guidelines and contribution guide.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/13 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
51 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More