
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
A <1kb React component that accurately middle-truncates monospaced text. Uses CSS round() and container queries (no JS measurement).
npm i -S midcut
pnpm add midcut
bun add midcut
import { Midcut } from "midcut";
function App() {
return <Midcut prefix="0x" value="0x1234567890abcdef1234567890abcdef12345678" />;
}
Important: only use with a monospace font.
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | "" | The string to truncate |
prefix | string | "" | A prefix that is always visible (e.g. "0x") |
min | number | 1 | Minimum characters visible on each side of the ellipsis |
ellipsis | string | "…" | The ellipsis character(s) |
align | "start" | "end" | "start" | Alignment of the truncated string within its container |
round(down, ..., 2ch) snaps the truncatable width to character boundaries so characters are never partially clippedjustify-content: flex-end to truncate from the startbun install
bun dev
MIT
FAQs
A <1kb React component that accurately middle-truncates monospaced text
We found that midcut 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
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.