grpc-protobufjs-devtools
grpc, proto, protobufjs, devtools, chrome, extensions
grpc-protobufjs-devtoolsとは何ですか?
grpc-protobufjs-devtoolsはttshangxiangによって開発されたChromeの拡張機能で、その主な機能は「grpc, proto, protobufjs, devtools, chrome, extensions」です。
拡張機能のスクリーンショット
grpc-protobufjs-devtools拡張機能のCRXファイルをダウンロード
grpc-protobufjs-devtools拡張子のファイルをcrx形式でダウンロードし、ブラウザにChrome拡張機能を手動でインストールするか、crxファイルを友達と共有して簡単にChrome拡張機能をインストールします。
拡張機能の使用方法
### 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}));
``` 拡張機能の基本情報
| 名前 | |
| ID | hlpccefinpildddaohjbonjdddnefnmg |
| 公式URL | https://chromewebstore.google.com/detail/grpc-protobufjs-devtools/hlpccefinpildddaohjbonjdddnefnmg |
| 説明 | grpc, proto, protobufjs, devtools, chrome, extensions |
| ファイルサイズ | 301 KB |
| インストール数 | 526 |
| 現在のバージョン | 0.0.3 |
| 最終更新日 | 2019-06-21 |
| 公開日 | 2019-06-21 |
| 評価 | 3.50/5 合計 2 レビュー |
| 開発者 | ttshangxiang |
| 支払い方法 | free |
| 対応言語 | 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
} | |