{"library":"binary-parser-encoder","type":"library","category":null,"description":"binary-parser-encoder is a JavaScript/TypeScript library designed for declaratively building binary data parsers and encoders. It stands as a feature-rich fork of the popular `binary-parser` project, notably extending its capabilities by adding an `encode` method to convert JavaScript objects back into binary buffers—a key differentiator absent in the original library. The current stable version, 1.5.3, has recently incorporated updates from the upstream `binary-parser` v1.7.0, ensuring continued compatibility while expanding functionality. The library dynamically generates and compiles parser/encoder code on-the-fly, achieving performance comparable to hand-written implementations. It supports a comprehensive set of data types including 8-bit to 64-bit integers, floating-point numbers, bit fields, strings, arrays, choices, and user-defined structures. Its release cadence is primarily influenced by updates to the upstream `binary-parser` and the ongoing development of its unique encoding features, with an explicit long-term goal of merging these enhancements back into the main project.","language":"javascript","status":"active","version":"1.5.3","tags":["javascript","binary","parser","decode","encoder","encode","unpack","struct","buffer","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install binary-parser-encoder","imports":["import { Parser } from 'binary-parser-encoder';","const { Parser } = require('binary-parser-encoder');","import type { Parser } from 'binary-parser-encoder';"]},{"cmd":"yarn add binary-parser-encoder","imports":[]},{"cmd":"pnpm add binary-parser-encoder","imports":[]}],"homepage":null,"github":"https://github.com/Ericbla/binary-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/binary-parser-encoder","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/binary-parser-encoder/compatibility"}}