Share your code. Components are building blocks, you are the architect.

buffer/from
v1.0.0
1.0.0
0.0.1
Contributors
Gravatar for undefined
bit
1
MIT
PUBLIC
1
1     DEPENDENCIES
Build: pass
BuildPass
Build Status: pass

A ponyfill for Buffer.from, uses native implementation if available.

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set @bit:registry https://node.bitsrc.io
Use buffer/from in your project
npm i @bit/bit.utils.buffer.from
Copied

from ()

A ponyfill for Buffer.from, uses native implementation if available.

Test Summary


#buffer/from() should allocate a new Buffer using an array of octetsPass
#buffer/from() should share the same allocated memory as the TypedArray with given offset and lengthPass
#buffer/from() should create a new Buffer containing the given string with utf8 encoding.Pass
#buffer/from() should copy the passed buffer data onto a new Buffer instancePass