Source:
dev fb1c2e2
Shared, zero-dependency utilities used across RAILGUN reloaded packages.
This package is the canonical home for primitive conversion helpers (hex strings, byte arrays, bigints). It exists so that every package in the monorepo gets the same validated behavior from a single implementation instead of diverging copies.
npm install @railgun-reloaded/bytes
import { hexToBytes, bytesToHex, bigIntToBytes, bytesToBigInt } from '@railgun-reloaded/bytes'
npm run build # tsc --build
npm run lint # eslint
npm run lint:fix # eslint --fix
npm test # build + node --test
MIT