Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
use-font-face-observer
Advanced tools
Font Face Observer is a small
@font-face
loader and monitor compatible with any webfont service. It will monitor when a webfont is loaded and notify you. It does not limit you in any way in the where, when, or how you load your webfonts. Unlike the Web Font Loader Font Face Observer uses scroll events to detect font loads efficiently and with minimum overhead.
yarn add use-font-face-observer
const isFontListLoaded = useFontFaceObserver([
{
family: `Roboto`,
style: `italic`,
weight: `bold`,
stretch: `condensed`,
},
]);
const isFontListLoaded = useFontFaceObserver([
{ family: `Roboto` },
{ family: `Inter` },
]);
false
)const isFontListLoaded = useFontFaceObserver(
[{ family: `Roboto` }],
{
testString?: `ФЯЦ`,
timeout: 5000,
},
{
showErrors: true,
},
)
FAQs
React hook to detect if web fonts are available 🪝
The npm package use-font-face-observer receives a total of 5,550 weekly downloads. As such, use-font-face-observer popularity was classified as popular.
We found that use-font-face-observer demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.