buffer-from
npmv1.1.2A [ponyfill](https://ponyfill.com) for `Buffer.from`, uses native implementation if available.
Overview
buffer-from is an npm package that a [ponyfill](https://ponyfill.com) for `Buffer.from`, uses native implementation if available. The latest version is 1.1.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need a [ponyfill](https://ponyfill.com) for `Buffer.from`, uses native implementation if available 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 (1 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 buffer-from.
Dependencies
Dev (1)
Used by
Popular packages that depend on buffer-from.
Alternatives to buffer-from
Read/write IEEE754 floating point numbers from/to a Buffer or array-like object
Is this value a JS SharedArrayBuffer?
Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
smart-buffer is a Buffer wrapper that adds automatic read & write offset tracking, string operations, data insertions, and more.
Frequently installed together
Generates and consumes source maps
Native Abstractions for Node.js: C++ header for Node 0.8 -> 26 compatibility
Lodash modular utilities.
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
Version history
| Version | Published | License |
|---|---|---|
| 1.1.2latest | 5 years ago | MIT |
| 1.1.1 | 8 years ago | MIT |
| 1.1.0 | 8 years ago | MIT |
| 1.0.0 | 8 years ago | MIT |
| 0.1.2 | 8 years ago | MIT |
| 0.1.1 | 9 years ago | MIT |
| 0.1.0 | 10 years ago | MIT |
Maintainers
Keywords
Frequently asked questions
How do I install buffer-from?
Run `npm install buffer-from` to add buffer-from to your npm project.
What license is buffer-from released under?
buffer-from is distributed under the MIT license.
How popular is buffer-from?
buffer-from has approximately 0 downloads per week and 2 known dependent packages.