{"name":"resolve-protobuf-schema","version":"1.0.0","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":"d659a016270f75220b4b0ef093b6768e8d24ed0a","_id":"resolve-protobuf-schema@1.0.0","_shasum":"6da32af7cd5a7932a82237ead21ded998778e290","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"6da32af7cd5a7932a82237ead21ded998778e290","tarball":"http://registry-npm.ywwl.com/resolve-protobuf-schema/download/resolve-protobuf-schema-1.0.0.tgz","integrity":"sha512-Ll/udOwyi+XcWIvo75Blg8TNLHfX0A6bOVM68vBS774++DPXFuhpziGIu3kp7n0+794jWsbKxoJL9wiAxqN39A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGgJrsXz0ZNNaWmehY/0xct5WeYncH3HJqKPGXqmwtG7AiEAktqy/oi3c79G0cvDTH27eE4JiK8tfMaY9Nh+9OUFN9U="}],"size":2110,"noattachment":false,"key":"/resolve-protobuf-schema/-/resolve-protobuf-schema-1.0.0.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":1413091238230,"_cnpm_publish_time":1413091238230,"dist-tags":{"latest":"2.1.0"}}