{"_id":"resolve-protobuf-schema","_rev":"370474","name":"resolve-protobuf-schema","description":"Read a protobuf schema from the disk, parse it and resolve all imports","dist-tags":{"latest":"2.1.0"},"maintainers":[{"name":"mafintosh","email":""}],"time":{"modified":"2021-07-26T06:59:45.000Z","created":"2014-10-12T05:20:38.230Z","2.1.0":"2018-07-20T15:49:56.796Z","2.0.0":"2015-07-02T20:44:15.003Z","1.0.2":"2014-10-12T05:45:03.686Z","1.0.1":"2014-10-12T05:22:32.991Z","1.0.0":"2014-10-12T05:20:38.230Z"},"users":{},"author":{"name":"Mathias Buus","url":"@mafintosh"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/resolve-protobuf-schema.git"},"versions":{"2.1.0":{"name":"resolve-protobuf-schema","version":"2.1.0","description":"Read a protobuf schema from the disk, parse it and resolve all imports","main":"index.js","dependencies":{"protocol-buffers-schema":"^3.3.1"},"devDependencies":{"tape":"^3.0.0"},"scripts":{"test":"tape test/index.js"},"repository":{"type":"git","url":"git+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":"a1cc27799461a4bd5445717422655a73d9fcb0b7","_id":"resolve-protobuf-schema@2.1.0","_npmVersion":"6.1.0","_nodeVersion":"10.7.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"9ca9a9e69cf192bbdaf1006ec1973948aa4a3758","size":2269,"noattachment":false,"key":"/resolve-protobuf-schema/-/resolve-protobuf-schema-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/resolve-protobuf-schema/download/resolve-protobuf-schema-2.1.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resolve-protobuf-schema_2.1.0_1532101796704_0.33179004667463574"},"_hasShrinkwrap":false,"publish_time":1532101796796,"_cnpm_publish_time":1532101796796},"2.0.0":{"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","size":2317,"noattachment":false,"key":"/resolve-protobuf-schema/-/resolve-protobuf-schema-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/resolve-protobuf-schema/download/resolve-protobuf-schema-2.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"publish_time":1435869855003,"_cnpm_publish_time":1435869855003,"_hasShrinkwrap":false},"1.0.2":{"name":"resolve-protobuf-schema","version":"1.0.2","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":"df6f20e54ee792369152b93c6e402c2d52489c67","_id":"resolve-protobuf-schema@1.0.2","_shasum":"91219afe30415d55dadbdf3813292bd2223c5990","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":""}],"dist":{"shasum":"91219afe30415d55dadbdf3813292bd2223c5990","size":2310,"noattachment":false,"key":"/resolve-protobuf-schema/-/resolve-protobuf-schema-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/resolve-protobuf-schema/download/resolve-protobuf-schema-1.0.2.tgz"},"directories":{},"publish_time":1413092703686,"_cnpm_publish_time":1413092703686,"_hasShrinkwrap":false},"1.0.1":{"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":""}],"dist":{"shasum":"30511d6ce18984829c4076b1dd70ed4a9532d6a2","size":2153,"noattachment":false,"key":"/resolve-protobuf-schema/-/resolve-protobuf-schema-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/resolve-protobuf-schema/download/resolve-protobuf-schema-1.0.1.tgz"},"directories":{},"publish_time":1413091352991,"_cnpm_publish_time":1413091352991,"_hasShrinkwrap":false},"1.0.0":{"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":""}],"dist":{"shasum":"6da32af7cd5a7932a82237ead21ded998778e290","size":2110,"noattachment":false,"key":"/resolve-protobuf-schema/-/resolve-protobuf-schema-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/resolve-protobuf-schema/download/resolve-protobuf-schema-1.0.0.tgz"},"directories":{},"publish_time":1413091238230,"_cnpm_publish_time":1413091238230,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/mafintosh/resolve-protobuf-schema","bugs":{"url":"https://github.com/mafintosh/resolve-protobuf-schema/issues"},"license":"MIT"}