mirror of
https://github.com/fluencelabs/libp2p-ts
synced 2025-03-30 08:51:04 +00:00
9 lines
149 B
TypeScript
9 lines
149 B
TypeScript
// @ts-ignore
|
|
import varint from 'varint';
|
|
|
|
varint.encode(300);
|
|
varint.encode.bytes;
|
|
|
|
varint.decode(Buffer.from([0xa7, 0x02]));
|
|
varint.decode.bytes;
|