resolve-protobuf-schema
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "resolve-protobuf-schema", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Read a protobuf schema from the disk, parse it and resolve all imports", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -23,3 +23,3 @@ # resolve-protobuf-schema | ||
var resolve = require('resolve-protobuf-schema') | ||
console.log(resolve('test.proto')) // prints the parsed schema | ||
console.log(resolve.sync('test.proto')) // prints the parsed schema | ||
``` | ||
@@ -38,7 +38,12 @@ | ||
``` js | ||
console.log(resolve('./another-test.proto')) // will print a combined parsed schema | ||
console.log(resolve.sync('./another-test.proto')) // will print a combined parsed schema | ||
``` | ||
## API | ||
* `resolve(path, cb)` read and resolve a schema | ||
* `resolve.sync()` sync version of `resolve` | ||
## License | ||
MIT |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4842
48