Grpc, proto, protobufjs, devtools, chrome, extensions

Latest Version

Version
0.0.3
Update
June 21, 2019
Size
301KiB
Developer
Category
Users
450
Rating
3.5 ★
Manifest Version
2
Web Store Status
Languages Support
中文 (简体)
See more
Permissions
See more

grpc-protobufjs-devtools Extension

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

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "grpc-protobufjs-devtools", "version": "0.0.3", "description": "grpc, proto, protobufjs, devtools, chrome, extensions", "background": { "scripts": ["background.js"], "persistent": false }, "devtools_page": "devtools.html", "icons": { "16": "images/get_started16.png", "32": "images/get_started32.png", "48": "images/get_started48.png", "128": "images/get_started128.png" }, "content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self';", "manifest_version": 2}
Read more

Similar Extensions

icon

RPC Network Inspector Extension · Developer Tools 450 3 ★ 104KiB

icon

JSON-RPC Viewer Extension · Developer Tools 450 2 ★ 24.07KiB

icon

MobX Developer Tools Extension · Developer Tools 450 51 ★ 682KiB

icon

gRPC-Web Developer Tools Extension · Developer Tools 450 9 ★ 427KiB

icon

Proto Decoder Extension · Developer Tools 450 2 ★ 3.82KiB

icon

gRPC-Gateway Developer Tools Extension · Developer Tools 450 0 ★ 446KiB

icon

pbkit-devtools Extension · Developer Tools 450 1 ★ 240KiB

icon

JSON-handle Extension · Developer Tools 450 450 ★ 193KiB

icon

gRPC-Web Developer Tools Extension · Developer Tools 450 5 ★ 446KiB

icon

gRPC Web Devtools Extension · Developer Tools 450 5 ★ 999KiB

icon

WebSocket Test Client Extension · Developer Tools 450 31 ★ 129KiB

icon

grpc-web-devtools Extension · Developer Tools 450 3 ★ 1.13MiB

icon

DA Network Extension · Developer Tools 450 1 ★ 898KiB

icon

Smart Websocket Client Extension · Developer Tools 450 43 ★ 261KiB

icon

Simple WebSocket Client Extension · Developer Tools 450 97 ★ 53.95KiB

icon

Octotree - GitHub code tree Extension · Developer Tools 450 1139 ★ 3.54MiB

icon

FeHelper(前端助手) Extension · Developer Tools 450 321 ★ 2.72MiB

icon

稀土掘金 Extension · Productivity 450 339 ★ 4.66MiB

icon

Sourcegraph Extension · Developer Tools 450 169 ★ 8.22MiB

icon

PostWoman Http Test Extension · Developer Tools 450 46 ★ 834KiB

icon

Altair GraphQL Client Extension · Developer Tools 450 68 ★ 6.78MiB

icon

WebSocket King Client Extension · Developer Tools 450 49 ★ 773KiB

icon

GraphQL developer tools Extension · Developer Tools 450 24 ★ 98.19KiB

icon

JSON RPC Chrome Viewer Extension · Developer Tools 450 14 ★ 122KiB