Gathering detailed insights and metrics for webpack-grpc-web-loader
Gathering detailed insights and metrics for webpack-grpc-web-loader
Gathering detailed insights and metrics for webpack-grpc-web-loader
Gathering detailed insights and metrics for webpack-grpc-web-loader
A webpack loader to load .proto files for grpc-web with effortless setup.
npm install webpack-grpc-web-loader
Typescript
Module System
Node Version
NPM Version
48.9
Supply Chain
79
Quality
70
Maintenance
50
Vulnerability
97
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
7 Stars
21 Commits
1 Forks
1 Watchers
11 Branches
1 Contributors
Updated on Jul 16, 2024
Latest Version
0.1.8
Package Id
webpack-grpc-web-loader@0.1.8
Unpacked Size
5.14 kB
Size
2.35 kB
File Count
5
NPM Version
10.8.2
Node Version
22.4.1
Published on
Jul 16, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
👉 You don't have to install protoc or protoc-gen-grpc-web plugin in your environment, just use npm or yarn to install this webpack loader, and everything is done.
1npm install --save-dev webpack-grpc-web-loader
Or
1yarn add --dev webpack-grpc-web-loader
1const path = require('path'); 2 3module.exports = { 4 module: { 5 rules: [ 6 { 7 test: /\.proto$/, 8 use: [ 9 { 10 loader: 'webpack-grpc-web-loader', 11 options: { 12 protoPath: path.resolve(__dirname, './src/protos'), 13 }, 14 }, 15 ], 16 }, 17 ], 18 }, 19};
If you have multiple proto paths, you can pass an array to the option protoPath
:
1{ 2 loader: 'webpack-grpc-web-loader', 3 options: { 4 protoPath: [ 5 path.resolve(__dirname, './src/my-protos-1'), 6 path.resolve(__dirname, './src/my-protos-2'), 7 ], 8 }, 9}
1import helloWorldProto from './hello-world.proto'; 2 3const client = new helloWorldProto.HelloWorldClient('http://localhost:11101/grpc'); 4const helloRequest = new helloWorldProto.HelloRequest(); 5client.helloWorld(helloRequest, {}, (err, res) => { 6 // handle error and response here 7});
Option Name | Type | Required | Default Value | Description |
---|---|---|---|---|
protoPath | string | string[] | true | N/A | Same as --proto_path (-I ) in protoc |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/18 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
24 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More