This is an implementation of the Hummingbird parser and serializer for JavaScript.
Hummingbird is a binary serialization format. See the spec for details and format specification.
const json = { foo: "bar" };
const hbon = Hummingbird.serialize(new Hummingbird.Schema({ foo: Hummingbird.Types.string }), json);
Include the distribution javascript from the dist
folder.
Here's an online converter
Download this repository and install dependencies via NPM or yarn.
This project uses webpack. To build, simply
npm run webpack
(More documentation to follow)
const hbon = Hummingbird.serialize(schema, object, mapping);
// - schema is a Hummingbird.Schema object
// - object is a JSON object
// - mapping is an optional mapping object for shortkey support
const json = Hummingbird.parse(object, mapping);
// - object is a JSON object
// - mapping is an optional mapping object for shortkey support
This project uses Jasmine
npm run test
Current maintainer
This project is licensed under the MIT License - see the LICENSE file for details