add packet parser example

This commit is contained in:
liamcottle 2025-03-09 15:42:11 +13:00
parent f70049d38b
commit bc11e6a7fe

6
examples/parse_packet.js Normal file
View file

@ -0,0 +1,6 @@
import Packet from "../src/packet.js";
const bytes = Buffer.from("0200B401DF6528CC9778A56F36FE9399A5CF6B0C7EDE", "hex");
const packet = Packet.fromBytes(bytes);
console.log(packet);