safer-buffer
npmv2.1.2Modern Buffer API polyfill without footguns
Overview
safer-buffer is an npm package that modern Buffer API polyfill without footguns. The latest version is 2.1.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need modern Buffer API polyfill without footguns and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
- Lean dependency tree (2 direct dependencies).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of safer-buffer.
Dependencies
Dev (2)
Used by
Popular packages that depend on safer-buffer.
Convert character encodings in pure javascript.
A querystring parser that supports nesting and arrays, with a depth limit
string representations of objects in node and the browser
Frequently installed together
An AST-based pattern checker for JavaScript.
The semantic version parser used by npm.
the most correct and second fastest glob implementation in JavaScript
Convert character encodings in pure javascript.
`Object.defineProperty`, but not IE 8's broken one.
Store information about any JS value in a side channel. Uses WeakMap if available.
Determine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams.
Runtime typescript and ESM support for Node.js
[](https://github.com/mmkal/expect-type/actions/workflows/ci.yml)  [](ht
TypeScript definitions for node
string representations of objects in node and the browser
Version history
| Version | Published | License |
|---|---|---|
| 2.1.2latest | 8 years ago | MIT |
| 2.1.1 | 8 years ago | MIT |
| 2.1.0 | 8 years ago | MIT |
| 2.0.2 | 8 years ago | MIT |
| 2.0.1 | 8 years ago | MIT |
| 2.0.0 | 8 years ago | MIT |
Maintainers
Frequently asked questions
How do I install safer-buffer?
Run `npm install safer-buffer` to add safer-buffer to your npm project.
What license is safer-buffer released under?
safer-buffer is distributed under the MIT license.
How popular is safer-buffer?
safer-buffer has approximately 0 downloads per week and 3 known dependent packages.