1.1.0 • Published 7 years ago
bufferaddon v1.1.0
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])