ihex

0.3.0 • Public • Published

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)

Readme

Keywords

Package Sidebar

Install

npm i ihex

Weekly Downloads

1

Version

0.3.0

License

ISC

Last publish

Collaborators

  • cinderblock