
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
cloudflare-fonts
Advanced tools
Library for using Cloudflare Fonts
with React's SSR
Adjusts output content so that React hydration does not fail if Cloudflare rewrites the HTML content
https://cloudflare-fonts.croud.jp/
https://github.com/SoraKumo001/react-router-cloudflare-fonts
Shows how to use Cloudflare Fonts
on the React Router
.
Adjust the output content on the React Router
.
Use CloudflareFonts to configure font settings.
import { CloudflareFonts } from "cloudflare-fonts";
export function Layout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<Meta />
<Links />
<CloudflareFonts
href={[
"https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap",
"https://fonts.googleapis.com/css2?family=Kaisei+Decol&display=swap",
"https://fonts.googleapis.com/css2?family=Dela+Gothic+One&display=swap",
]}
/>
</head>
<body>
{children}
<ScrollRestoration />
<Scripts />
</body>
</html>
);
}
export default function Index() {
const fonts = ["Noto Sans JP", "Kaisei Decol", "Dela Gothic One"];
return (
<div className="text-4xl">
{fonts.map((v) => (
<div key={v} style={{ fontFamily: v }}>
日本語フォント:{v}
</div>
))}
</div>
);
}
FAQs
Library for using Cloudflare Fonts with React's SSR
The npm package cloudflare-fonts receives a total of 4 weekly downloads. As such, cloudflare-fonts popularity was classified as not popular.
We found that cloudflare-fonts 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.