intel-hex

0.2.0 • Public • Published

intel-hex.js

A parser/writer for Intel HEX file format.

Usage

require("intel_hex").parse(data);

The parse function takes 3 arguments:

  • data - Intel Hex file (string in ASCII format or Buffer Object)
  • bufferSize - the size of the Buffer containing the data (optional) The data exceeding the buffer size will be discarded
  • addressOffset - starting address offset (optional) The data before the starting address will be discarded

and returns an Object with the following properties:

  • data - data as a Buffer Object, padded with 0xFF where data is empty.
  • startSegmentAddress - the address provided by the last start segment address record; null, if not given
  • startLinearAddress - the address provided by the last start linear address record; null, if not given

Special thanks to: http://en.wikipedia.org/wiki/Intel_HEX

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    138
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    138
  • 0.1.2
    405
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i intel-hex

Weekly Downloads

446

Version

0.2.0

License

MIT

Unpacked Size

7.49 kB

Total Files

4

Last publish

Collaborators

  • bminer