const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
// Prints: 1234567890ab
console.log(buf.readUIntLE(0, 6).toString(16));
// Prints: ab9078563412
console.log(buf.readUIntBE(0, 6).toString(16));
However, the comments describing the output are the opposite of what they should be. The LE example outputs "ab9078563412" whereas the BE example outputs "1234567890ab".