grpc-protobufjs-devtools chrome extension

Version: 0.0.3
grpc-protobufjs-devtools
grpc, proto, protobufjs, devtools, chrome, extensions
0.00 Based on 0 user rates

What is grpc-protobufjs-devtools?

grpc-protobufjs-devtools is a javascript extension for chrome. it's a free extension , it has 446 active users since released its first version, it earns an average rating of 0.00 from 0 rated user, last update is 1773 days ago.


What’s new in version 0.0.3?

                ### use
1, 使用node和protobufjs创建proto.js。
``` javascript
const pbjs = require("protobufjs/cli/pbjs");
const fs = require('fs');
const path = require('path');
const glob = require('glob');

const protoPath = 'src/proto/**/*.proto'; // origin path
const protos = glob.sync(protoPath);

pbjs.main([ "--target", "json-module", "-w", "commonjs", ...protos], function(err, output) {
  if (err)
    throw err;
  // target path
  fs.writeFileSync(path.resolve(__dirname, './src/xxx/proto.js'), output);
});
``` 
2, 挂载json字符串到window。
``` javascript
const $root = require('./src/xxx/proto.js');
window.__DEVTOOLS_PROTO_JSON_STRING__ = JSON.stringify($root.toJSON({keepComments: true}));
```            

How to install grpc-protobufjs-devtools?

You could download the latest version crx file or older version files and install it.


Preview of grpc-protobufjs-devtools


Technical Features:

  • Latest Version: 0.0.3
  • Requirements: Windows Chrome, Mac Chrome
  • License: Free
  • Latest update: Friday, June 21st, 2019
  • Author: ttshangxiang

grpc-protobufjs-devtools Available languages:

中文 (简体).


FAQ