Skip to content

2gis/json2pbf

 
 

Repository files navigation

json2pbf

Simple JSON <-> protobuf codec

Install

npm i -S @2gis/json2pbf

Usage

Simple usage

import { packJson, unpackJson } from 'json2pbf';

const json = { foo: ['bar', 'baz'] }

const packed = packJson(json);

const unpacked = unpackJson(packed);

Row and columnar data

TBD

Development

Install deps

npm i

To start the demo server, run:

npm start

Build

npm run build

Publish

npm version  patch | minor | major
npm run build
npm publish --access=public

License

This project is licensed under the MIT License.

Packages

No packages published

Languages

  • TypeScript 98.4%
  • JavaScript 1.6%