Swap-Aggregator-Subgraph/node_modules/protocol-buffers-schema/example.js
Richa-iitr d211083153 Revert "Revert "added handler""
This reverts commit c36ee8c5ca.
2022-07-03 07:30:05 +05:30

12 lines
268 B
JavaScript

var schema = require('./')
var fs = require('fs')
var sch = schema.parse(fs.readFileSync('example.proto'))
console.log('Parsed schema:')
console.log(JSON.stringify(sch, null, 2))
console.log('')
console.log('Stringified schema:')
console.log(schema.stringify(sch))