Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 767 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 767 Bytes

number-encoding

NumberEncoder/NumberDecoder with API similar to TextEncoder/TextDecoder.

Usage

let number = ...;
let encoder = new NumberEncoder("Int16");
let bytes = encoder.encode(number);

let bytes = ...;
let decoder = new NumberDecoder("Float64");
let number = decoder.decode(bytes);

See also