bufferaddon
v1.1.0
Published
An addon for the Buffer object.
Downloads
1
Readme
A module that adds extra methods the the buffer object.
require('bufferaddon')()
var buffer = Buffer.from('NodeJS and NPM rock!')
console.log(buffer.toArray())
console.log(buffer.toBytes())
console.log(buffer.toBytes(16))
Installation
$ npm install bufferaddon
Features
- A simple buffer-to-base method
- A buffer-to-array method that functions the same as [...bufferObj]
Functions
bufferObj.toArray()
bufferObj.toBytes([base])