{"name":"resolve-protobuf-schema","version":"1.0.1","description":"Read a protobuf schema from the disk, parse it and resolve all imports","main":"index.js","dependencies":{"protobuf-schema":"^1.2.0"},"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":"b044a40986587357c69f246237f3c7304cf58df4","_id":"resolve-protobuf-schema@1.0.1","_shasum":"30511d6ce18984829c4076b1dd70ed4a9532d6a2","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"30511d6ce18984829c4076b1dd70ed4a9532d6a2","tarball":"http://registry-npm.ywwl.com/resolve-protobuf-schema/download/resolve-protobuf-schema-1.0.1.tgz","integrity":"sha512-qqI8Mfa3ZAj5qK80Yrqr7s/qiIdZsYt66gkQkoiJpOSn1xeVVucXhFjjF2p/6DivOhTTReN7VJyASQ/d5cq6wg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsn4V7tuy+tEURcVN1IBOel2Z07k/koZls6YX27vmGRQIhAL0/W+sEYiU2P6wiRzz7pK0vEDxBGVnb3/8JYsFSn3au"}],"size":2153,"noattachment":false,"key":"/resolve-protobuf-schema/-/resolve-protobuf-schema-1.0.1.tgz"},"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":1413091352991,"_cnpm_publish_time":1413091352991,"dist-tags":{"latest":"2.1.0"}}