What is it?
A library that allows you to read/write the contents of a binary file into/from a JSON Object, taking care of all data type conversion using JavaScript-friendly values, rather than requiring you to seek at specific offsets or to translate byte values.
You can search for data by value, slice blocks into separate, meaningful structures or generate a binary downloadable file, all inside your browser.
Use cases
Some practical usage examples are:
- Validating whether a file header contains the appropriate description, by comparing its parsed data to the respective data types.
- Scanning a file for specific metadata to determine the location of other meaningful data.
- Creating a binary file in your browser, without having to repeatedly write meaningless byte values in sequence.
Available via npm
npm install binarcular