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 파일 다운로드
크롬 확장 프로그램을 crx 형식으로 다운로드하여 브라우저에 수동으로 설치하거나 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
} | |