grpc-protobufjs-devtools
grpc, proto, protobufjs, devtools, chrome, extensions
Wat is grpc-protobufjs-devtools?
grpc-protobufjs-devtools is een Chrome-extensie ontwikkeld door ttshangxiang, en de belangrijkste functie is "grpc, proto, protobufjs, devtools, chrome, extensions".
Extensie Screenshots
Download het CRX-bestand van de extensie grpc-protobufjs-devtools
Download grpc-protobufjs-devtools-extensiebestanden in crx-indeling, installeer Chrome-extensies handmatig in de browser of deel de crx-bestanden met vrienden om Chrome-extensies eenvoudig te installeren.
Instructies voor het Gebruik van de Extensie
### 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}));
``` Basisinformatie over de Extensie
| Naam | |
| ID | hlpccefinpildddaohjbonjdddnefnmg |
| Officiële URL | https://chromewebstore.google.com/detail/grpc-protobufjs-devtools/hlpccefinpildddaohjbonjdddnefnmg |
| Beschrijving | grpc, proto, protobufjs, devtools, chrome, extensions |
| Bestandsgrootte | 301 KB |
| Aantal Installaties | 526 |
| Huidige Versie | 0.0.3 |
| Laatst Bijgewerkt | 2019-06-21 |
| Publicatiedatum | 2019-06-21 |
| Beoordeling | 3.50/5 Totaal 2 Beoordelingen |
| Ontwikkelaar | ttshangxiang |
| Betalingswijze | free |
| Ondersteunde Talen | 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
} | |