lurq

npm package

Home

truncate-utf8-bytes

truncate-utf8-bytes is a utility for truncating strings to a specified byte length while correctly handling multi-byte characters. It is useful when you need to ensure that strings do not exceed a certain byte size, especially in environments with strict byte limits. This package can be integrated into applications that require precise string length management.

lurq health score
38/100
Confidence
unproven
Weekly downloads
8,395,462
Latest version
1.0.2
Last release
Sep 29, 2016
License
WTFPL

Should you depend on truncate-utf8-bytes?

lurq's verdict: low

  • No known advisories

Check this from your coding agent

This page is a daily snapshot. lurq's verify tool checks truncate-utf8-bytes at the exact version your agent is about to install, and compat checks it against the rest of your stack. One command connects Claude Code, Cursor, VS Code and other agents:

npx lurqrun

Free to start. Quickstart

Other utility packages lurq scores

Scored from public signals (npm registry, GitHub, deps.dev and advisory databases). Data as of Sep 7, 2026; this page refreshes every 24 hours. Source repository.