StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
907 B
50 lines
907 B
4 years ago
|
# resolve-protobuf-schema
|
||
|
|
||
|
Read a protobuf schema from the disk, parse it and resolve all imports
|
||
|
|
||
|
```
|
||
|
npm install resolve-protobuf-schema
|
||
|
```
|
||
|
|
||
|
[](http://travis-ci.org/mafintosh/resolve-protobuf-schema)
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
Store the following example protobuf schema in `test.proto`
|
||
|
|
||
|
```
|
||
|
message Test {
|
||
|
optional string test = 1;
|
||
|
}
|
||
|
```
|
||
|
|
||
|
Then run
|
||
|
|
||
|
``` js
|
||
|
var resolve = require('resolve-protobuf-schema')
|
||
|
console.log(resolve.sync('test.proto')) // prints the parsed schema
|
||
|
```
|
||
|
|
||
|
Schema imports will resolved as well
|
||
|
|
||
|
```
|
||
|
import "./test.proto"
|
||
|
|
||
|
message AnotherTest {
|
||
|
optional string test = 1;
|
||
|
}
|
||
|
```
|
||
|
|
||
|
``` js
|
||
|
console.log(resolve.sync('./another-test.proto')) // will print a combined parsed schema
|
||
|
```
|
||
|
|
||
|
## API
|
||
|
|
||
|
* `resolve(path, cb)` read and resolve a schema
|
||
|
* `resolve.sync(path)` sync version of `resolve`
|
||
|
|
||
|
## License
|
||
|
|
||
|
MIT
|