Skip to main content
The Node.js Buffer class views and manipulates data in an underlying ArrayBuffer. The buffer property returns that ArrayBuffer.
const nodeBuf = Buffer.alloc(64);
const arrBuf = nodeBuf.buffer;

See Binary Data.