grpc-protobufjs-devtools
grpc, proto, protobufjs, devtools, chrome, extensions
grpc-protobufjs-devtools क्या है?
grpc-protobufjs-devtools ttshangxiang द्वारा विकसित एक क्रोम एक्सटेंशन है, और इसकी मुख्य विशेषता है "grpc, proto, protobufjs, devtools, chrome, extensions"।
एक्सटेंशन स्क्रीनशॉट्स
एक्सएक्स एक्सटेंशन CRX फ़ाइल डाउनलोड करें
crx प्रारूप में grpc-protobufjs-devtools एक्सटेंशन फ़ाइलें डाउनलोड करें, ब्राउज़र में क्रोम एक्सटेंशन को मैन्युअल रूप से स्थापित करें या दोस्तों के साथ crx फ़ाइलों को साझा करें ताकि क्रोम एक्सटेंशन को आसानी से स्थापित किया जा सके।
एक्सटेंशन उपयोग निर्देश
### 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
} | |