grpc-protobufjs-devtools

grpc, proto, protobufjs, devtools, chrome, extensions

What is grpc-protobufjs-devtools?

grpc-protobufjs-devtools is a Chrome extension developed by ttshangxiang, and its main feature is "grpc, proto, protobufjs, devtools, chrome, extensions".

Extension Screenshots

screenshot

Download grpc-protobufjs-devtools Extension CRX File

Download grpc-protobufjs-devtools extension files in crx format, manually install Chrome extensions in the browser, or share the crx files with friends to easily install Chrome extensions.

Extension Usage Instructions

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

Extension Basic Information

Name grpc-protobufjs-devtools grpc-protobufjs-devtools
ID hlpccefinpildddaohjbonjdddnefnmg
Official URL https://chromewebstore.google.com/detail/grpc-protobufjs-devtools/hlpccefinpildddaohjbonjdddnefnmg
Description grpc, proto, protobufjs, devtools, chrome, extensions
File Size 301 KB
Installation Count 526
Current Version 0.0.3
Last Updated 2019-06-21
Publish Date 2019-06-21
Rating 3.50/5 Total 2 Ratings
Developer ttshangxiang
Payment Type free
Supported Languages zh-CN
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
}