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.25%)
JavaScript (30.24%)
TypeScript (22.9%)
HTML (3.03%)
Nunjucks (0.48%)
Shell (0.1%)
Total Downloads
441,820,462
Last Day
218,320
Last Week
3,978,183
Last Month
17,087,643
Last Year
185,618,604
MIT-0 License
981 Stars
4,377 Commits
78 Forks
9 Watchers
6 Branches
132 Contributors
Updated on Jun 28, 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
-7.7%
218,320
Compared to previous day
Last Week
-10%
3,978,183
Compared to previous week
Last Month
2.3%
17,087,643
Compared to previous month
Last Year
11.7%
185,618,604
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 8 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
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
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-06-23
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