proto-json

0.0.0 • Public • Published

proto-json

Schema thingy for protobuf (with proto/json support)

npm install proto-json

Usage

var proto = require('proto-json');

var schema = proto(aprotothing);

schema.validate(obj); // returns true or false
schema.infer(obj);    // update the schema by infering stuff from obj

var json = schema.toJSON();

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i proto-json

Weekly Downloads

1

Version

0.0.0

License

none

Last publish

Collaborators

  • mafintosh