Simple JSON <-> protobuf codec
npm i -S @2gis/json2pbf
Simple usage
import { packJson, unpackJson } from 'json2pbf';
const json = { foo: ['bar', 'baz'] }
const packed = packJson(json);
const unpacked = unpackJson(packed);
TBD
Install deps
npm i
To start the demo server, run:
npm start
Build
npm run build
npm version patch | minor | major
npm run build
npm publish --access=public
This project is licensed under the MIT License.