@fagelsjo/blocks
v1.0.9
Published
Handle 256bit blocks of bigints in an IPv6 kind of way.
Downloads
1,326
Readme
@fagelsjo/blocks
by @dr-Jonas-Birch
Handle 256bit blocks of bigints, in an IPv6 kind of way
import type { Block } from '@fagelsjo/blocks';
import { mkblock,toint } from '@fagelsjo/blocks';
let block:Block;
let integer:bigint;
block = mkblock('fe80::20c:29ff:fe9f:807c/256');
console.log(block);
console.log(block.toString());
integer = toint(block);
console.log(integer);License
MIT
