Open this example in the interactive library
Source code
import { Buffer } from "node:buffer";
console.log(Buffer.from("header-body").subarray(7).toString());
Sample output
body

Open this example in the interactive library
import { Buffer } from "node:buffer";
console.log(Buffer.from("header-body").subarray(7).toString());
body