{"library":"safer-buffer","type":"library","category":null,"description":"A polyfill for the modern Buffer API (Buffer.alloc, Buffer.from, Buffer.allocUnsafe, Buffer.allocUnsafeSlow) that works on Node.js from 0.8 to current, but unlike safe-buffer it does not silently allow the deprecated Buffer() constructor. Latest version: 2.1.2. This package is a drop-in replacement that forces the use of the safe API by exporting only the safe Buffer methods, eliminating the security footgun of uninitialized memory allocation. It is intended as a temporary measure for projects that must support older Node.js versions. For modern Node.js (>=4.5.0 and >=5.9.0), direct use of the built-in Buffer.alloc and Buffer.from is recommended.","language":"javascript","status":"maintenance","version":"2.1.2","tags":["javascript"],"install":[{"cmd":"npm install safer-buffer","imports":["const Buffer = require('safer-buffer').Buffer","import { Buffer } from 'safer-buffer'","Buffer.alloc(size, fill, encoding)","Buffer.from(array)"]},{"cmd":"yarn add safer-buffer","imports":[]},{"cmd":"pnpm add safer-buffer","imports":[]}],"homepage":null,"github":"https://github.com/ChALkeR/safer-buffer","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/safer-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/safer-buffer/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Fri Jul 24","install_tag":null}}