Show HN: Ultra-lightweight chunker library with emoji support

I kept rewriting the same array.slice(i, i + n) logic in every project. Eventually, I decided to stop and just make a utility.

Chonkify is a small (~870B), zero-dependency JS/TS library for chunking any kind of data:

- Works with Array, String, Buffer, Set, Map, Array-like, TypedArray

- Handles AsyncIterable (great for batching streams)

- Unicode-safe (correctly handles grapheme clusters, emoji, etc.)

- ESM-first, TypeScript-ready

I mostly made it for myself, but figured others might find it useful too.

Would love feedback!


Comments URL: https://news.ycombinator.com/item?id=44172017

Points: 12

# Comments: 2

https://github.com/ushakov-igor/chonkify

Erstellt 16d | 03.06.2025, 18:50:07


Melden Sie sich an, um einen Kommentar hinzuzufügen

Andere Beiträge in dieser Gruppe

Show HN: I wrote a new BitTorrent tracker in Elixir

Hello everyone!

I'm currently in a journey to learn and improve my Elixir and Go skills (my daily job uses C++) and looking through my backlog for projects to take on I decided Elixir is the per

20.06.2025, 00:20:08 | Hacker news