God, Love, News, Event, Entertainment, Amebo,..... All about Bringing out the best in you...
Show HN: Chonkify – updated 1kB chunker, now grapheme-aware https://ift.tt/5YRvij1
Show HN: Chonkify – updated 1kB chunker, now grapheme-aware Hey all! Thanks again for the thoughtful feedback on my original post — much appreciated. I’ve made a few updates to chonkify, my tiny (~1kB) utility for chunking anything (arrays, strings, buffers, async iterables, etc.): - Full source now included (no more minified-only dist) - Clarified string behavior: -- chonk() uses UTF-16 code points (like JS) -- new chonkGraphemes() splits by grapheme clusters (so emoji stay intact) - Updated README with clear examples and tradeoffs I still think grapheme support is cool — just not the default anymore. JS strings are based on UTF-16, but real-world text (emojis, Hindi, Thai, etc.) often needs grapheme-aware handling. Now you can choose between "what JS does" and "what users expect". This is still very much a pet project — I built it primarily for myself and don’t claim any production-grade seriousness. That said, I’d be thrilled if it turns out useful to anyone else. Would love more feedback! https://ift.tt/cIsZkTn June 4, 2025 at 12:05AM
Subscribe to:
Post Comments (Atom)
Show HN: Git for AI Agents https://ift.tt/WEoCLO3
Show HN: Git for AI Agents hi guys. been working on something i think is fundamentally missing in today's workflow with ai agents. vcs. ...
-
submitted by /u/Dull_Tonight [link] [comments] source https://www.reddit.com/r/worldnews/comments/pehy48/housing_secretary_robert_je...
-
Show HN: A Spotify player in the terminal with full feature parity https://ift.tt/oZgrl1Q July 18, 2024 at 02:57AM
-
Show HN: Wallpapper Splitter for Many Desktop I've build an simple tool to split your wallpapers across multiple desktops. Now you can u...
No comments:
Post a Comment