bytesish: Cross-Platform Binary API

JSON →
library 0.4.4 ·javascript
verified May 27, 2026

`bytesish` (current stable version 0.4.4) is a utility library designed to simplify cross-platform binary data handling in JavaScript applications, specifically targeting environments compatible with both Node.js and browsers. It addresses the complexity of dealing with disparate binary types like Node.js `Buffer` and various browser `ArrayBufferView` types (e.g., `Uint8Array`) by providing a consistent `DataView` interface without introducing large polyfills. The library's core differentiator is its focus on zero-copy conversions to and from `DataView` whenever possible, minimizing memory overhead and bundle size. It offers utilities for converting between binary types and strings (with various encodings), comparison, sorting, slicing, and concatenating binary data. `bytesish` does not create a new binary data type but leverages `DataView` for direct manipulation, aiming to be a lightweight helper for common binary operations that are otherwise difficult to implement cross-platform.

total hits 21
actors 9 distinct systems
last hit 5d ago AhrefsBot
MetaBot
4
ByteDance
3
GPTBot
2
Script
1
ClaudeBot
1
Search engines
2

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada · 🇫🇷 France