{"name":"thriftify","version":"1.0.0-alpha9","keywords":[],"author":{"name":"Lei Zhao","email":"leizha@uber.com"},"_id":"thriftify@1.0.0-alpha9","maintainers":[{"name":"uber","email":"opensource@uber.com"}],"contributors":[{"name":"Lei Zhao"}],"homepage":"https://github.com/uber/thriftify","bugs":{"url":"https://github.com/uber/thriftify/issues","email":"leizha@uber.com"},"dist":{"shasum":"78414bfb0a4cb3a3e670309834e0765458ccad49","tarball":"http://registry-npm.ywwl.com/thriftify/download/thriftify-1.0.0-alpha9.tgz","integrity":"sha512-gqUFhsEy3WmACjJ/XgSO4wnhhtmx17zGS1RTBD5gTgVzfpSq5ZTtpYe6FjPJUbB0R6hGV0CUBUGO+EifckWqPA==","signatures":[{"sig":"MEYCIQCSRA2yU8N/JK1OIZj0L5tNrxh59u2Cs+hXJKG/rE4v5gIhAPd47C26L8DFHlUaPxoB/ky2uKIqrOTptHSFpJkmDMv/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":58610,"noattachment":false,"key":"/thriftify/-/thriftify-1.0.0-alpha9.tgz"},"main":"index.js","_from":".","itape":{"trace":{"debuglog":["thriftify"],"formatStack":true,"leakedHandles":{"timeout":5001,"debugSockets":true}}},"engines":{"node":">= 0.10.x"},"scripts":{"lint":"lint-trap .","test":"npm run check-ls -s && node test/index.js","cover":"npm run test-cover -s && npm run check-cover -s","trace":"itape test/index.js --trace","travis":"npm run cover -s && istanbul report lcov && ((cat coverage/lcov.info | coveralls) || exit 0)","check-ls":"npm ls 1>/dev/null","test-cover":"istanbul cover --report html --print detail -- test/index.js","view-cover":"opn ./coverage/index.html","add-licence":"uber-licence","check-cover":"istanbul check-coverage --branches=100 --lines=100 --functions=100","check-licence":"uber-licence --dry"},"_npmUser":{"name":"uber","email":"opensource@uber.com"},"licenses":[{"url":"http://github.com/uber/thriftify/raw/master/LICENSE","type":"MIT"}],"pre-commit":["check-licence","test"],"repository":{"url":"git://github.com/uber/thriftify.git","type":"git"},"_npmVersion":"1.4.3","description":"thrift compiler in js","directories":{},"dependencies":{"bufrw":"^0.9.14","debug":"^2.1.3","error":"^6.0.0","pegjs":"^0.8.0","lodash":"^3.5.0","thriftrw":"git+ssh://gitolite@code.uber.internal:github/uber/thriftrw#v1.0.0-beta2"},"devDependencies":{"opn":"^1.0.1","tape":"^3.4.0","itape":"^1.5.0","istanbul":"^0.3.5","benchmark":"^1.0.0","coveralls":"^2.10.0","lint-trap":"^1.0.0","pre-commit":"0.0.9","uber-licence":"^1.2.0"},"pre-commit.silent":true,"uber-ngen-version":"5.2.0","readme":"# thriftify\n\n<!--\n    [![build status][build-png]][build]\n    [![Coverage Status][cover-png]][cover]\n    [![Davis Dependency status][dep-png]][dep]\n-->\n\n<!-- [![NPM][npm-png]][npm] -->\n\nthrift compiler in js\n\n## Example\n\n```js\nvar thriftify = require(\"thriftify\");\nvar path = require('path');\n\n/*example.thrift\n\nstruct SomeStruct {\n    1:i32 someInt\n}\nstruct BarResult {\n    1:bool someBool\n}\n\nservice foo {\n    BarResult bar(1:string someString, 2:SomeStruct someStruct)\n}\n\n*/\nvar spec = thriftify.readSpecSync(path.join(__dirname, 'example.thrift'));\n\nvar buf = thriftify.toBuffer({\n    someString: 'foobar',\n    someStruct: {\n        someInt: 24\n    }\n}, spec, 'foo::bar_args');\n\n// send the `buf` over the wire somewhere\n\nvar result = thriftify.fromBuffer(someBuf, spec, 'foo::bar_result');\nconsole.log(result.success); // { someBool: false }\n```\n\n## Installation\n\n`npm install thriftify`\n\n## Tests\n\n`npm test`\n\n## NPM scripts\n\n - `npm run add-licence` This will add the licence headers.\n - `npm run cover` This runs the tests with code coverage\n - `npm run lint` This will run the linter on your code\n - `npm test` This will run the tests.\n - `npm run trace` This will run your tests in tracing mode.\n - `npm run travis` This is run by travis.CI to run your tests\n - `npm run view-cover` This will show code coverage in a browser\n\n## Contributors\n\n - Lei Zhao\n\n## MIT Licenced\n\n  [build-png]: https://secure.travis-ci.org/uber/thriftify.png\n  [build]: https://travis-ci.org/uber/thriftify\n  [cover-png]: https://coveralls.io/repos/uber/thriftify/badge.png\n  [cover]: https://coveralls.io/r/uber/thriftify\n  [dep-png]: https://david-dm.org/uber/thriftify.png\n  [dep]: https://david-dm.org/uber/thriftify\n  [test-png]: https://ci.testling.com/uber/thriftify.png\n  [tes]: https://ci.testling.com/uber/thriftify\n  [npm-png]: https://nodei.co/npm/thriftify.png?stars&downloads\n  [npm]: https://nodei.co/npm/thriftify\n","publish_time":1428711687513,"_cnpm_publish_time":1428711687513,"dist-tags":{"latest":"1.0.0-alpha14"}}