Skip to main content

Module buffer_shim

Module buffer_shim 

Source
Expand description

Node.js Buffer shim — pure-JS implementation for the QuickJS extension runtime.

Provides a Buffer class that extends Uint8Array with Node.js-compatible encoding/decoding (utf8, base64, hex, ascii, latin1), static factory methods (from, alloc, concat, isBuffer, byteLength), and instance methods (toString, write, slice, copy, compare, equals, indexOf, includes, fill, toJSON).

Constants§

NODE_BUFFER_JS
The JS source for the node:buffer virtual module.