Gathering detailed insights and metrics for font-subset-loader2
Gathering detailed insights and metrics for font-subset-loader2
Gathering detailed insights and metrics for font-subset-loader2
Gathering detailed insights and metrics for font-subset-loader2
npm install font-subset-loader2
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
34 Commits
1 Branches
1 Contributors
Updated on Feb 22, 2023
Latest Version
1.1.7
Package Id
font-subset-loader2@1.1.7
Unpacked Size
4.14 kB
Size
2.03 kB
File Count
4
NPM Version
6.4.1
Node Version
11.6.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
6
Thanks for dematerializer's work. Consider his package is obsolete, so I have forked this package and make it compatible with webpack 4+
Transforms a TTF font resource so that it contains only a specified subset of glyphs with all other glyphs stripped out.
npm install font-subset-loader2 --save-dev
Webpack Documentation: Using loaders
Glyphs like !
or ,
conflict with webpack's query string syntax (i.e. 'font-subset-loader2?glyphs=hey,you!'
). It is therefore recommended to instead use a query object for passing the glyphs to the loader as a property:
1{ 2 test: /\.ttf$/, 3 use: [{ 4 loader: 'font-subset-loader2', 5 options: { 6 glyphs: 'hey,you!' 7 } 8 }] 9} 10// returns the file content of the subsetted file.ttf 11// that contains only the specified glyphs 'h', 'e', 'y', ',', 'o', 'u' and '!'
Process subsetted .ttf
files with file-loader:
1rules: [ 2 { 3 test: /\.ttf$/, 4 use: [ 5 { 6 loader: 'file-loader' 7 }, 8 { 9 loader: 'font-subset-loader2', 10 options: { 11 glyphs: 'hey,you!' 12 } 13 } 14 ] 15 }, 16]
Process subsetted .ttf
files with url-loader:
1rules: [ 2 { 3 test: /\.ttf$/, 4 use: [ 5 { 6 loader: 'url-loader' 7 }, 8 { 9 loader: 'font-subset-loader2', 10 options: { 11 glyphs: 'hey,you!' 12 } 13 } 14 ] 15 }, 16]
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/30 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 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
58 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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