1.0.0 • Published 9 years ago
b2f v1.0.0
b2f
Convert a series of 8-bit signed integers to 32-bit floats.
Installation
Install globally to use from the command line:
npm install b2f --globalInstall as dependency to use programmatically:
npm install b2f --saveCLI Usage:
cat input.bin | b2f > output.binProgrammatic Usage:
var b2f = require('b2f')
var input = new Buffer('01020304', 'hex')
var output = b2f(input)
console.log(output.toString('hex')) // 0000003c0000803c0000c03c0000003dAPI
var output = b2f(input)
Returns a Buffer object four times the size of input with each byte
converted the a 32-bit float (little endian).
It's expected that each byte in input is of type 8-bit signed integer.
License
MIT
1.0.0
9 years ago