Gathering detailed insights and metrics for postcss-font-variant
Gathering detailed insights and metrics for postcss-font-variant
PostCSS plugin to transform W3C CSS font variant properties to more compatible CSS (font-feature-settings)
npm install postcss-font-variant
Typescript
Module System
Node Version
NPM Version
98.6
Supply Chain
89.9
Quality
79.5
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
1,490,147,301
Last Day
1,015,305
Last Week
4,695,633
Last Month
21,576,899
Last Year
288,747,854
24 Stars
42 Commits
9 Forks
6 Watching
6 Branches
21 Contributors
Minified
Minified + Gzipped
Latest Version
5.0.0
Package Id
postcss-font-variant@5.0.0
Size
3.28 kB
NPM Version
6.14.9
Node Version
14.15.3
Publised On
12 Jan 2021
Cumulative downloads
Total Downloads
Last day
-6.7%
1,015,305
Compared to previous day
Last week
-18.6%
4,695,633
Compared to previous week
Last month
5.6%
21,576,899
Compared to previous month
Last year
-14.2%
288,747,854
Compared to previous year
PostCSS Font-Variant lets you use font-variant
in CSS, following the
CSS Fonts specification.
1$ npm install postcss-font-variant
1// dependencies 2var postcss = require("postcss") 3var fontVariant = require("postcss-font-variant") 4 5// css to be processed 6var css = fs.readFileSync("input.css", "utf8") 7 8// process css using postcss-font-variant 9var out = postcss() 10 .use(fontVariant()) 11 .process(css) 12 .css
Using this input.css
:
1h2 { 2 font-variant-caps: small-caps; 3} 4 5table { 6 font-variant-numeric: lining-nums; 7}
you will get:
1h2 { 2 font-feature-settings: "smcp"; 3 font-variant-caps: small-caps; 4} 5 6table { 7 font-feature-settings: "lnum"; 8 font-variant-numeric: lining-nums; 9} 10
Checkout tests for more examples.
Work on a branch, install dev-dependencies, respect coding style & run tests before submitting a bug fix or a feature.
$ git clone https://github.com/postcss/postcss-font-variant.git
$ git checkout -b patch-1
$ npm install
$ npm test
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 7/25 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
22 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
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