Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
css-font-parser
Advanced tools
A simple parser for parsing CSS font values in JavaScript. It has a parser for the font shorthand syntax and the font-family syntax.
You can install the parser using:
npm install css-font-parser
import { parseFont, parseFontFamily } from 'css-font-parser';
parseFont('15px sans-serif');
> {
> 'font-family': ['sans-serif'],
> 'font-size': '15px'
> }
parseFont('15px/18px "Neue Helvetica", Helvetica, sans-serif');
> {
> 'font-family': ['Neue Helvetica', 'Helvetica', 'sans-serif'],
> 'font-size': '15px',
> 'line-height': '18px'
> }
parseFontFamily('"Neue Helvetica", Helvetica, system-ui, sans-serif');
> ['Neue Helvetica', 'Helvetica', 'system-ui', 'sans-serif']
Licensed under the three-clause BSD license.
FAQs
A parser for the CSS font value
The npm package css-font-parser receives a total of 17,110 weekly downloads. As such, css-font-parser popularity was classified as popular.
We found that css-font-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.