{"library":"buffer","type":"library","category":null,"description":"The `buffer` package provides a robust and faithful polyfill for Node.js's `Buffer` API, allowing developers to manipulate binary data directly within web browsers. Currently at version 6.0.3, this library is actively maintained and aims for near 100% API compatibility with Node.js's native `Buffer` module, including its latest (unstable) API features, while acknowledging the underlying `Buffer` API itself is stable. It differentiates itself by leveraging modern JavaScript `Uint8Array` and `ArrayBuffer` for high performance and efficient memory use, resulting in an extremely small bundle size (6.75KB minified + gzipped). This approach ensures broad browser compatibility across Chrome, Firefox, Edge, Safari 11+, iOS 11+, and Android. The package is a crucial component for enabling many Node.js modules to function seamlessly in browser environments, often used in conjunction with bundlers like Browserify which automatically substitute Node's core `buffer` module with this browser-compatible version, providing a consistent binary data handling experience.","language":"javascript","status":"active","version":"6.0.3","tags":["javascript","arraybuffer","browser","browserify","buffer","compatible","dataview","uint8array","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install buffer","imports":["import { Buffer } from 'buffer';","var Buffer = require('buffer/').Buffer;","Buffer.from('hello');","import type { Buffer } from 'buffer';"]},{"cmd":"yarn add buffer","imports":[]},{"cmd":"pnpm add buffer","imports":[]}],"homepage":null,"github":"https://github.com/feross/buffer","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/buffer","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/buffer/compatibility"}}