grpc-protobufjs-devtools
grpc, proto, protobufjs, devtools, chrome, extensions
grpc-protobufjs-devtoolsคืออะไร?
grpc-protobufjs-devtools เป็นส่วนขยายของ Chrome ที่พัฒนาโดย ttshangxiang และคุณลักษณะหลักของมันคือ "grpc, proto, protobufjs, devtools, chrome, extensions"
ภาพหน้าจอของส่วนขยาย
ดาวน์โหลดไฟล์ CRX ของส่วนขยาย grpc-protobufjs-devtools
ดาวน์โหลดไฟล์ส่วนขยาย 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
} | |