bufferutil

JSON →
library 4.1.0 ·javascript
verified Jun 7, 2026

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().