{"repo":"keichi/binary-parser","free":true,"listed":false,"github":"https://github.com/keichi/binary-parser","clone":"git clone https://github.com/keichi/binary-parser.git","description":"A blazing-fast declarative parser builder for binary data","language":"TypeScript","stars":955,"topics":["javascript","binary-parser","parser","nodejs","buffer","parser-builder","typescript","binary"],"license":"MIT","category":"dev-tools","readme_excerpt":"Binary-parser Binary-parser is a parser builder for JavaScript that enables you to write efficient binary parsers in a simple and declarative manner. It supports all common data types required to analyze a structured binary data. Binary-parser dynamically generates and compiles the parser code on-the-fly, which runs as fast as a hand-written parser (which takes much more time and effort to write). Supported data types are: - Integers (8, 16, 32 and 64 bit signed and unsigned integers) - Floating point numbers (32 and 64 bit floating point values) - Bit fields (bit fields with length from 1 to 32 bits) - Strings (fixed-length, variable-length and zero terminated strings with various encodings) - Arrays (fixed-length and variable-length arrays of builtin or user-defined element types) - Choices (supports integer keys) - Pointers - User defined types (arbitrary combination of builtin types) Binary-parser was inspired by BinData and binary. Quick Start 1. Create an empty Parser object with new Parser() or Parser.start() . 2. Chain methods to build your desired parser. (See API for detailed documentation of each method) 3. Call Parser.prototype.parse with a Buffer / Uint8Array object passed as its only argument. 4. The parsed result will be returned as an object. - If parsing failed, an exception will be thrown. Installation You can install binary-parser via npm: The npm package provides entry points for both CommonJS and ES modules. API new Parser() Create an empty parser object ","default_branch":null,"files":null,"tree":[],"storefront":"/r/keichi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/keichi/binary-parser/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}