BigInts represented as hi/low bit values
$ npm i longbits
import { LongBits } from 'longbits'
const val = 6547656755453442n
const bits = LongBits.fromBigInt(val)
bits.toBigInt() // 6547656755453442n
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.