{"library":"bufferutil","type":"library","category":null,"description":"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().","language":"javascript","status":"active","version":"4.1.0","tags":["javascript","bufferutil"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install bufferutil","imports":["const bufferUtil = require('bufferutil');","bufferUtil.mask(source, mask, output, offset, length);","bufferUtil.unmask(buffer, mask);"]},{"cmd":"yarn add bufferutil","imports":[]},{"cmd":"pnpm add bufferutil","imports":[]}],"homepage":"https://github.com/websockets/bufferutil","github":"https://github.com/websockets/bufferutil","docs":null,"changelog":null,"pypi":null,"npm":"bufferutil","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}