Gathering detailed insights and metrics for @csstools/postcss-ic-unit
Gathering detailed insights and metrics for @csstools/postcss-ic-unit
Gathering detailed insights and metrics for @csstools/postcss-ic-unit
Gathering detailed insights and metrics for @csstools/postcss-ic-unit
npm install @csstools/postcss-ic-unit
Typescript
Module System
Min. Node Version
Node Version
NPM Version
98
Supply Chain
95
Quality
84.7
Maintenance
100
Vulnerability
100
License
CSS (43.25%)
JavaScript (30.24%)
TypeScript (22.9%)
HTML (3.03%)
Nunjucks (0.48%)
Shell (0.1%)
Total Downloads
560,187,658
Last Day
244,121
Last Week
4,374,290
Last Month
18,661,699
Last Year
203,396,853
MIT-0 License
982 Stars
4,379 Commits
78 Forks
9 Watchers
6 Branches
132 Contributors
Updated on Jul 04, 2025
Minified
Minified + Gzipped
Latest Version
4.0.2
Package Id
@csstools/postcss-ic-unit@4.0.2
Unpacked Size
7.63 kB
Size
3.19 kB
File Count
7
NPM Version
10.9.0
Node Version
22.12.0
Published on
May 27, 2025
Cumulative downloads
Total Downloads
Last Day
-7.2%
244,121
Compared to previous day
Last Week
-9.1%
4,374,290
Compared to previous week
Last Month
2.6%
18,661,699
Compared to previous month
Last Year
6.1%
203,396,853
Compared to previous year
1
PostCSS IC Unit lets you use the ic length unit, following the CSS Values and Units Module specification.
1p { 2 text-indent: 2ic; 3} 4 5.bubble { 6 width: calc(8ic + 20px); 7} 8 9/* becomes */ 10p { 11 text-indent: 2em; 12} 13 14.bubble { 15 width: calc(8em + 20px); 16}
See prior work by JLHwung here postcss-ic-unit To ensure long term maintenance and to provide the needed features this plugin was recreated based on JLHwung's work.
Add PostCSS IC Unit to your project:
1npm install postcss @csstools/postcss-ic-unit --save-dev
Use it as a PostCSS plugin:
1const postcss = require('postcss'); 2const postcssIcUnit = require('@csstools/postcss-ic-unit'); 3 4postcss([ 5 postcssIcUnit(/* pluginOptions */) 6]).process(YOUR_CSS /*, processOptions */);
PostCSS IC Unit runs in all Node environments, with special instructions for:
Node | PostCSS CLI | Webpack | Gulp | Grunt |
---|
The preserve
option determines whether the original source
is preserved. By default, it is not preserved.
1postcssIcUnit({ preserve: true })
1p { 2 text-indent: 2ic; 3} 4 5/* becomes */ 6 7p { 8 text-indent: 2em; 9 text-indent: 2ic; 10}
No vulnerabilities found.
Reason
30 commit(s) and 8 issue activity found in the last 90 days -- score normalized to 10
Reason
license file detected
Details
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
1 existing vulnerabilities detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 1/24 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-06-30
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