
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
font-subset-loader
Advanced tools
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-loader fontmin --save-dev
font-subset-loader requires fontmin
as a peerDependency
. Thus you are able to specify the required version accurately.
Webpack Documentation: Using loaders
Glyphs like !
or ,
conflict with webpack's query string syntax (i.e. 'font-subset?glyphs=hey,you!'
). It is therefore recommended to instead use a query object for passing the glyphs to the loader as a property:
{
test: /\.ttf$/,
loader: 'font-subset',
query: { glyphs: 'hey,you!' }
}
// returns the file content of the subsetted file.ttf
// that contains only the specified glyphs 'h', 'e', 'y', ',', 'o', 'u' and '!'
Process subsetted .ttf
files with file-loader:
loaders: [
{
test: /\.ttf$/,
loader: 'file'
},
{
test: /\.ttf$/,
loader: 'font-subset',
query: { glyphs: 'hey,you!' }
}
]
Process subsetted .ttf
files with url-loader:
loaders: [
{
test: /\.ttf$/,
loader: 'url'
},
{
test: /\.ttf$/,
loader: 'font-subset',
query: { glyphs: 'hey,you!' }
}
]
MIT
FAQs
font subset loader module for webpack
The npm package font-subset-loader receives a total of 0 weekly downloads. As such, font-subset-loader popularity was classified as not popular.
We found that font-subset-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.