{"name":"resolve-protobuf-schema","version":"2.0.0","description":"Read a protobuf schema from the disk, parse it and resolve all imports","main":"index.js","dependencies":{"protocol-buffers-schema":"^2.0.2"},"devDependencies":{"tape":"^3.0.0"},"scripts":{"test":"tape test/index.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/resolve-protobuf-schema.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/resolve-protobuf-schema/issues"},"homepage":"https://github.com/mafintosh/resolve-protobuf-schema","gitHead":"28153b2360f35473e007534aa0991c8c97eb7088","_id":"resolve-protobuf-schema@2.0.0","_shasum":"e67b062a67f02d11bd6886e70efda788407e0fb4","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"e67b062a67f02d11bd6886e70efda788407e0fb4","tarball":"http://registry-npm.ywwl.com/resolve-protobuf-schema/download/resolve-protobuf-schema-2.0.0.tgz","integrity":"sha512-bxuCZAFsWdcAEHa3qp+dlzwNchW0oDxf8G1/dqizNYVmCFpaxdbIiIKUMYR70MwvQMBdpAz4fFvwQObbHYClmw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID6MA5jceQTFu4A42mJPRNP6bthWKxtrb8bdNS7W+PzdAiBENpaW+KamedKQ3VSYm2uf41zJ2+r53emCqYXgE4CD1Q=="}],"size":2317,"noattachment":false,"key":"/resolve-protobuf-schema/-/resolve-protobuf-schema-2.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{},"readme":"# resolve-protobuf-schema\n\nRead a protobuf schema from the disk, parse it and resolve all imports\n\n```\nnpm install resolve-protobuf-schema\n```\n\n[![build status](http://img.shields.io/travis/mafintosh/resolve-protobuf-schema.svg?style=flat)](http://travis-ci.org/mafintosh/resolve-protobuf-schema)\n\n## Usage\n\nStore the following example protobuf schema in `test.proto`\n\n```\nmessage Test {\n  optional string test = 1;\n}\n```\n\nThen run\n\n``` js\nvar resolve = require('resolve-protobuf-schema')\nconsole.log(resolve.sync('test.proto')) // prints the parsed schema\n```\n\nSchema imports will resolved as well\n\n```\nimport \"./test.proto\"\n\nmessage AnotherTest {\n  optional string test = 1;\n}\n```\n\n``` js\nconsole.log(resolve.sync('./another-test.proto')) // will print a combined parsed schema\n```\n\n## API\n\n* `resolve(path, cb)` read and resolve a schema\n* `resolve.sync(path)` sync version of `resolve`\n\n## License\n\nMIT\n","publish_time":1435869855003,"_cnpm_publish_time":1435869855003,"dist-tags":{"latest":"2.1.0"}}