{"library":"encode","type":"library","category":null,"description":"This package offers low-level utilities for deterministically encoding and decoding JavaScript records into binary formats suitable for database storage, particularly within contexts like B-trees or LevelDB-style key-value stores. It provides an `Encoder` class that accepts a schema-like definition of fields, allowing developers to precisely control the binary representation of structured data. This deterministic encoding is crucial for correct sorting and indexing in ordered data structures. The library is currently at version 1.0.1 and has not received updates in approximately ten years, indicating it is no longer actively maintained. Its core functionality revolves around efficient, type-aware binary serialization and deserialization of objects to and from Node.js `Buffer` instances, a key differentiator for performance-critical database operations over more generic serialization methods like JSON. The `Encoder` also exposes a `compare` method for comparing encoded binary records directly.","language":"javascript","status":"abandoned","version":"1.0.1","tags":["javascript","btree","leveldb","levelup","binary","mvcc","database","json","b-tree"],"last_verified":"Wed May 27","install":[{"cmd":"npm install encode","imports":["const Encoder = require('encode')","const encoded = encoder.encode(record)","const decoded = encoder.decode(buffer)"]},{"cmd":"yarn add encode","imports":[]},{"cmd":"pnpm add encode","imports":[]}],"homepage":"https://bigeasy.github.io/encode","github":"https://github.com/bigeasy/encode","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/encode","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/encode/compatibility"}}