Open this example in the interactive library
Source code
import * as z from "node:zlib";
const data = Buffer.from("sample sample sample");
console.log(z.crc32(data).toString(16));
Sample output
f552df35

Open this example in the interactive library
import * as z from "node:zlib";
const data = Buffer.from("sample sample sample");
console.log(z.crc32(data).toString(16));
f552df35