A native addon providing optimized WebSocket buffer masking and unmasking utilities. Version 4.1.0 requires Node.js >=6.14.2. It is an optional dependency of the ws library, designed to accelerate WebSocket frame processing via C++ bindings. Not meant for direct use; instead, install as optional dependency to improve performance when using ws. Alternative to pure JavaScript masking implementations. Low-maintenance, stable API with two functions: mask() and unmask().
npm install bufferutilNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates masking and unmasking a buffer using bufferutil.
Install build tools: `npm install -g node-gyp` or platform-specific prerequisites.
Ensure source, mask, output are Buffer instances, offset and length are within bounds.
Upgrade Node.js to >=6 or pin bufferutil@2.
Prefer using ws which abstracts bufferutil; avoid direct dependency unless needed.
Use `--save-optional` as recommended; do not use `--save` or `--save-dev`.
Recompile: `npm rebuild bufferutil`
Install: `npm install bufferutil --save-optional`
Install build tools: on Windows: `npm install --global windows-build-tools`; on Unix: ensure gcc and python installed.
No dependency data recorded yet.