Gathering detailed insights and metrics for @ln-zap/proto-loader
Gathering detailed insights and metrics for @ln-zap/proto-loader
Gathering detailed insights and metrics for @ln-zap/proto-loader
Gathering detailed insights and metrics for @ln-zap/proto-loader
npm install @ln-zap/proto-loader
Typescript
Module System
Min. Node Version
Node Version
NPM Version
@grpc/grpc-js 1.13.4
Updated on May 21, 2025
@grpc/proto-loader 0.7.15
Updated on Apr 18, 2025
@grpc/proto-loader 0.7.14
Updated on Apr 17, 2025
@grpc/grpc-js 1.13.3
Updated on Apr 10, 2025
@grpc/grpc-js 1.13.2
Updated on Mar 26, 2025
@grpc/grpc-js 1.13.1
Updated on Mar 21, 2025
TypeScript (85.98%)
JavaScript (11.17%)
C++ (1.36%)
Shell (0.91%)
Dockerfile (0.24%)
CMake (0.13%)
Batchfile (0.12%)
PowerShell (0.1%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Apache-2.0 License
4,682 Stars
5,059 Commits
675 Forks
72 Watchers
51 Branches
187 Contributors
Updated on Jul 11, 2025
Latest Version
0.5.4
Package Id
@ln-zap/proto-loader@0.5.4
Size
7.84 kB
NPM Version
6.14.4
Node Version
12.13.0
Published on
Apr 07, 2020
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
2
5
A utility package for loading .proto
files for use with gRPC, using the latest Protobuf.js package.
Please refer to protobuf.js' documentation
to understands its features and limitations.
1npm install @grpc/proto-loader
1const protoLoader = require('@grpc/proto-loader'); 2const grpcLibrary = require('grpc'); 3// OR 4const grpcLibrary = require('@grpc/grpc-js'); 5 6protoLoader.load(protoFileName, options).then(packageDefinition => { 7 const packageObject = grpcLibrary.loadPackageDefinition(packageDefinition); 8}); 9// OR 10const packageDefinition = protoLoader.loadSync(protoFileName, options); 11const packageObject = grpcLibrary.loadPackageDefinition(packageDefinition);
The options parameter is an object that can have the following optional properties:
Field name | Valid values | Description |
---|---|---|
keepCase | true or false | Preserve field names. The default is to change them to camel case. |
longs | String or Number | The type to use to represent long values. Defaults to a Long object type. |
enums | String | The type to use to represent enum values. Defaults to the numeric value. |
bytes | Array or String | The type to use to represent bytes values. Defaults to Buffer . |
defaults | true or false | Set default values on output objects. Defaults to false . |
arrays | true or false | Set empty arrays for missing array values even if defaults is false Defaults to false . |
objects | true or false | Set empty objects for missing object values even if defaults is false Defaults to false . |
oneofs | true or false | Set virtual oneof properties to the present field's name. Defaults to false . |
includeDirs | An array of strings | A list of search paths for imported .proto files. |
The following options object closely approximates the existing behavior of grpc.load
:
1const options = { 2 keepCase: true, 3 longs: String, 4 enums: String, 5 defaults: true, 6 oneofs: true 7}
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
26 commit(s) and 14 issue activity found in the last 90 days -- score normalized to 10
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
security policy file detected
Details
Reason
Found 2/13 approved changesets -- score normalized to 1
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
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