Show HN: Ultra-lightweight chunker library with emoji support
a year ago
- #javascript
- #utility
- #async
- npm install chonkify
- Works with various data types: Array, String, Buffer, Set, Map, Array-like, TypedArray
- Supports AsyncIterable with `for await`
- Handles Unicode emoji and complex symbols correctly
- Minimal size: core is 870 bytes, entire package ~5.5 kB
- Zero dependencies
- ESM-first and TypeScript-ready
- Basic usage examples provided
- Supports asynchronous usage for large datasets
- Works in both browsers and Node.js
- Can handle nested data structures
- Licensed under MIT