# intel-hex

> A JavaScript parser/writer for Intel HEX file format.

Latest version **0.2.0** (published 2023-04-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install intel-hex
pnpm add intel-hex
yarn add intel-hex
bun add intel-hex
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2023-04-12 |
| First published | 2013-05-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Blake Miner |
| Maintainers | bminer |
| Keywords | intel, hex, parser, reader, writer |

## Links

- npm: https://www.npmjs.com/package/intel-hex
- Repository: https://github.com/bminer/intel-hex.js
- Homepage: https://github.com/bminer/intel-hex.js#readme
- Issues: https://github.com/bminer/intel-hex.js/issues
- npm.io page: https://npm.io/package/intel-hex

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2023-04-12
- 0.1.2 — 2019-11-19
- 0.1.1 — 2013-05-28
- 0.1.0 — 2013-05-21

## README

# intel-hex.js

A parser/writer for Intel HEX file format.

## Usage

```js
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

---
_Source: https://npm.io/package/intel-hex · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
