Grpc, proto, protobufjs, devtools, chrome, extensions
grpc-protobufjs-devtools Extension
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}));
```
Source Manifest.json
How to download and manually install grpc-protobufjs-devtools extension for Chrome
Looking for a way to install grpc-protobufjs-devtools extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.
However, you may need to install grpc-protobufjs-devtools extensions manually, this article outlines two simple methods to effortlessly install grpc-protobufjs-devtools extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.
Method 1: Download grpc-protobufjs-devtools extension and manually install through Drag &Drop
If you ever need to manually install a grpc-protobufjs-devtools extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.
Step 1: Download the grpc-protobufjs-devtools Extension by clicking the "Download CRX" button on the website.
Look for the grpc-protobufjs-devtools extension you wish to install. Go to the website and download the grpc-protobufjs-devtools extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for grpc-protobufjs-devtools extension that contains all the data.
Step 2: Extract &Arrange Files
Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.
Step 3: Go to the Chrome Extensions Page
Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.
Step 4: Drag and Drop the Extension
Now, go to the folder where you extracted the grpc-protobufjs-devtools extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.
Step 5: Complete the Installation
Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.
Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.
Method 2: Download grpc-protobufjs-devtools extension for Chrome and install in Developer Mode
This is another method to install grpc-protobufjs-devtools extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.
Step 1: Download the grpc-protobufjs-devtools extension file
Select and download the grpc-protobufjs-devtools extension by clicking the 'Download CRX' button on the website.
Step 2: Extract the downloaded contents
Convert the file to a ZIP file if it is in CRX format then extract the grpc-protobufjs-devtools extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your grpc-protobufjs-devtools extension running.
Step 3: Open Chrome Extension Setting Page
In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.
Step 4: Enable Developer Mode
After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.
Step 5: Load the Unpacked Extension
Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."
Step 6: Select the Extension Folder
Once the pop-up opens upon clicking Load unpacked, select the grpc-protobufjs-devtools extension directory and click on the "Select Folder "button.
Step 7: Confirm and Install
After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.
Conclusion
Here we've made a step-by-step guide on How to manually install grpc-protobufjs-devtools extension in 2 ways. We hope this guide proves helpful.
Similar Extensions
RPC Network Inspector 450 3 ★ 104KiB
JSON-RPC Viewer 450 2 ★ 24.07KiB
MobX Developer Tools 450 51 ★ 682KiB
gRPC-Web Developer Tools 450 9 ★ 427KiB
Proto Decoder 450 2 ★ 3.82KiB
gRPC-Gateway Developer Tools 450 0 ★ 446KiB
pbkit-devtools 450 1 ★ 240KiB
JSON-handle 450 450 ★ 193KiB
gRPC-Web Developer Tools 450 5 ★ 446KiB
gRPC Web Devtools 450 5 ★ 999KiB
WebSocket Test Client 450 31 ★ 129KiB
grpc-web-devtools 450 3 ★ 1.13MiB
DA Network 450 1 ★ 898KiB
Smart Websocket Client 450 43 ★ 261KiB
Simple WebSocket Client 450 97 ★ 53.95KiB
Octotree - GitHub code tree 450 1139 ★ 3.54MiB
FeHelper(前端助手) 450 321 ★ 2.72MiB
稀土掘金 450 339 ★ 4.66MiB
Sourcegraph 450 169 ★ 8.22MiB
PostWoman Http Test 450 46 ★ 834KiB
Altair GraphQL Client 450 68 ★ 6.78MiB
WebSocket King Client 450 49 ★ 773KiB
GraphQL developer tools 450 24 ★ 98.19KiB
JSON RPC Chrome Viewer 450 14 ★ 122KiB