0.3.0 • Published 9 years ago

ihex v0.3.0

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

#iHex file reader

Read an Intel Hex .hex file into an existing buffer.

Install

npm install --save -q ihex

Use

var ihex = require('ihex');

var buff = new Buffer(32*1024);
buff.fill(0xff);

// Callback style

ihex('/path/to/file.ihex', buff, function() {
 // All done!
 console.log(buff);
});

Alternatively, call without a callback to have a .then()able object returned. (We just return the object line-reader gives us)

ihex('/path/to/file.ihex', buff)
.then(callback)
0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago

0.1.0-0

9 years ago