
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
cz-typography
Advanced tools
Easily fix Czech typography with JavaScript and React.
Automatically replaces spaces after single-letter conjunctions and prepositions (a, v, s, z...) so they don't stay at the end of the line – in violation of Czech spelling rules!
Developed and maintained by Jan Vyskočil (aka Vysko).
Replace normal spaces with non-breaking spaces (\u00A0):
k autu, v domě)100 km, 30 °C)J. Vyskočil)$ npm install cz-typography
# or
$ yarn add cz-typography
import { fixCzech } from "cz-typography"
fixCzech('J. Novák běžel 5 km v domě.');
// => 'J.\u00A0Novák běžel 5\u00A0km v\u00A0domě.'
⚠️ REQUIRES
react@16.8.0or newer
(React is not required if you only use the JS function)
import TypoWrapper from 'cz-typography/react';
<TypoWrapper>
<p>J. Novák běžel 5 km v domě.</p>
</TypoWrapper>
The recursively walks through all text nodes in the JSX tree and applies the same typographic rules.
✅ Works in Server-side rendering (SSR)
❌ Cannot access nested content inside server components (likelayout.jsin Next.js) – use it closer to actual content (e.g. inpage.js).
You can disable individual features.
All the features are enabled by default:
fixCzech(text, {
prepositions: true, // enables fixing one-letter prepositions/conjunctions
units: true, // enables fixing number+unit
initials: true // enables fixing initial+surname
});
<TypoWrapper options={
prepositions: true,
units: true,
initials: true
}>
FAQs
Easily fix Czech typography with JavaScript and React.
We found that cz-typography 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.