Gathering detailed insights and metrics for @csstools/postcss-nested-calc
Gathering detailed insights and metrics for @csstools/postcss-nested-calc
Gathering detailed insights and metrics for @csstools/postcss-nested-calc
Gathering detailed insights and metrics for @csstools/postcss-nested-calc
npm install @csstools/postcss-nested-calc
Typescript
Module System
Min. Node Version
Node Version
NPM Version
98.1
Supply Chain
82.8
Quality
80.2
Maintenance
100
Vulnerability
100
License
CSS (43.36%)
JavaScript (30.33%)
TypeScript (22.68%)
HTML (3.06%)
Nunjucks (0.48%)
Shell (0.1%)
Total Downloads
428,529,114
Last Day
692,705
Last Week
3,796,295
Last Month
16,453,746
Last Year
183,457,225
MIT-0 License
960 Stars
4,266 Commits
75 Forks
9 Watchers
4 Branches
130 Contributors
Updated on May 09, 2025
Minified
Minified + Gzipped
Latest Version
4.0.0
Package Id
@csstools/postcss-nested-calc@4.0.0
Unpacked Size
6.16 kB
Size
2.69 kB
File Count
7
NPM Version
10.7.0
Node Version
22.1.0
Published on
Aug 03, 2024
Cumulative downloads
Total Downloads
Last Day
42.2%
692,705
Compared to previous day
Last Week
3.5%
3,796,295
Compared to previous week
Last Month
-6.8%
16,453,746
Compared to previous month
Last Year
11.2%
183,457,225
Compared to previous year
2
1
npm install @csstools/postcss-nested-calc --save-dev
PostCSS Nested Calc lets you use nested calc()
expressions following the CSS Values and Units 4 specification.
1.example {
2 order: calc(1 + calc(2 * 2));
3}
4
5/* becomes */
6
7.example {
8 order: calc(1 + (2 * 2));
9 order: calc(1 + calc(2 * 2));
10}
Add PostCSS Nested Calc to your project:
1npm install postcss @csstools/postcss-nested-calc --save-dev
Use it as a PostCSS plugin:
1const postcss = require('postcss'); 2const postcssNestedCalc = require('@csstools/postcss-nested-calc'); 3 4postcss([ 5 postcssNestedCalc(/* pluginOptions */) 6]).process(YOUR_CSS /*, processOptions */);
The preserve
option determines whether the original notation
is preserved. By default the original values are preserved.
1postcssNestedCalc({ preserve: false })
1.example {
2 order: calc(1 + calc(2 * 2));
3}
4
5/* becomes */
6
7.example {
8 order: calc(1 + (2 * 2));
9}
No vulnerabilities found.
Reason
30 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
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 0/24 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-05-05
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