extimg

grpc-protobufjs-devtools

grpc, proto, protobufjs, devtools, chrome, extensions

3.50 (2)
Publisher: ttshangxiang
Overview
Stats
Download
Reviews

Overview

What is grpc-protobufjs-devtools?

grpc, proto, protobufjs, devtools, chrome, extensions.

SCREENSHOT

Preview
screen shot
Preview
screen shot

SUMMARY

### 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}));
```

See More

Stats

15 Days

Trends for grpc-protobufjs-devtools:

Rank

#0
--

User count

#
--

Category Rank

#
--

Rating

#3.50
--

Download

The latest version of grpc-protobufjs-devtools is available on the Chrome web and is currently being used by 480 active users. The initial version was launched on 2019-06-21.

Total Downloads:  0(Downloads from CRX Insider)

HOW TO INSTALL grpc-protobufjs-devtools FROM A CRX FILE

  1. Download grpc-protobufjs-devtools CRX file
  2. NOTE: Sometimes the browser may block downloading / installing CRX file from outside the Chrome Web Store. If so, you may need to download the ZIP file instead
  3. In the URL bar, go to chrome://extensions
  4. Enable Developer mode
Show more

Ratings

3.50

Average Rating

Total ratings

2

USER REVIEWS (0)

No reviews
SIMILAR EXTENSIONS
Here are some Chrome extensions that are similar to grpc-protobufjs-devtools Prompt List: