bigint-serde
JS implementation of JSON serialization of BigInt and BigUint types from Rust num-bigint crate
Example
BigInt
const toJSON fromJSON = ; console; // → [-1,[2899336981,28744523]]console; // → -123456789123456789n
BigUint
const toJSON fromJSON = ; console; // → [2899336981,28744523]console; // → 123456789123456789n
Install
yarn add bigint-serde