@tgsnake/bytesio
v1.0.0
Published
A simple BytesIO implementation for Typescript
Readme
BytesIO 🚀
A simple Buffer implementation inspired by Python's BytesIO.
This project was originally based on the source code from @tgsnake/core. 🐍
Features ✨
- In-memory byte stream operations 💾
- Read and write bytes efficiently ⚡
- Python-like API for ease of use 🐍
Installation 📦
# Example installation command
npm install @tgsnake/bytesioUsage 🛠️
import { BytesIO } from '@tgsnake/bytesio';
const stream = new BytesIO();
stream.write(Buffer.from([1, 2, 3]));
stream.seek(0);
console.log(stream.read(3)); // Output: <Buffer 01 02 03>