{"_id":"thriftify","_rev":"1736896","name":"thriftify","description":"thrift compiler in js","dist-tags":{"latest":"1.0.0-alpha14"},"maintainers":[{"name":"uber","email":"opensource@uber.com"},{"name":"leizha","email":"leizha@uber.com"},{"name":"kriskowal","email":"kris.kowal@cixar.com"}],"time":{"modified":"2026-11-16T05:43:58.000Z","created":"2015-04-11T00:21:27.513Z","1.0.0-alpha14":"2015-06-01T18:53:58.904Z","1.0.0-alpha13":"2015-04-24T22:40:19.129Z","1.0.0-alpha12":"2015-04-13T23:43:16.684Z","1.0.0-alpha11":"2015-04-13T23:40:12.693Z","1.0.0-alpha10":"2015-04-11T00:30:49.020Z","1.0.0-alpha9":"2015-04-11T00:21:27.513Z"},"users":{},"author":{"name":"Lei Zhao","email":"leizha@uber.com"},"repository":{"url":"git://github.com/uber/thriftify.git","type":"git"},"versions":{"1.0.0-alpha14":{"name":"thriftify","version":"1.0.0-alpha14","keywords":[],"author":{"name":"Lei Zhao","email":"leizha@uber.com"},"_id":"thriftify@1.0.0-alpha14","maintainers":[{"name":"uber","email":"opensource@uber.com"},{"name":"leizha","email":"leizha@uber.com"},{"name":"kriskowal","email":"kris.kowal@cixar.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":"9fca3f7ab529b4246304609db4dbcd92fceb0176","tarball":"http://registry-npm.ywwl.com/thriftify/download/thriftify-1.0.0-alpha14.tgz","integrity":"sha512-SUS2joROXZQPzNDOFlHT8dlNH50tzyxQcERvfukEU9bu5kp80d/0/pl9YSMmvCvlrQebNk5pqYyiJXMU0DbwBg==","signatures":[{"sig":"MEUCIQCVmF9n9nOWRdr6rbb3PAuZ9dLazN+WyfPNwRzZSABqugIgXsvZTBMdKidRaPShJySnCDpkKnFEoMpKpFLqBFaCgRY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":24898,"noattachment":false,"key":"/thriftify/-/thriftify-1.0.0-alpha14.tgz"},"main":"index.js","_from":".","itape":{"trace":{"debuglog":["thriftify"],"formatStack":true,"leakedHandles":{"timeout":5001,"debugSockets":true}}},"_shasum":"9fca3f7ab529b4246304609db4dbcd92fceb0176","engines":{"node":">= 0.10.x"},"gitHead":"9ee279403f01f71f20c4fbe63a87109a73a82ddd","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":"leizha","email":"leizha@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":"2.8.3","description":"thrift compiler in js","directories":{},"_nodeVersion":"0.10.32","dependencies":{"bufrw":"^0.9.19","debug":"^2.1.3","error":"^6.0.0","pegjs":"^0.8.0","lodash":"^3.5.0","thriftrw":"v1.0.0-beta3"},"devDependencies":{"opn":"^1.0.1","tape":"^3.4.0","itape":"^1.5.0","istanbul":"^0.3.5","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","publish_time":1433184838904,"_cnpm_publish_time":1433184838904},"1.0.0-alpha13":{"name":"thriftify","version":"1.0.0-alpha13","keywords":[],"author":{"name":"Lei Zhao","email":"leizha@uber.com"},"_id":"thriftify@1.0.0-alpha13","maintainers":[{"name":"uber","email":"opensource@uber.com"},{"name":"leizha","email":"leizha@uber.com"},{"name":"kriskowal","email":"kris.kowal@cixar.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":"7044974092da1d7ac47e7f38b727099e3bcb556b","tarball":"http://registry-npm.ywwl.com/thriftify/download/thriftify-1.0.0-alpha13.tgz","integrity":"sha512-yUFFqmTmcI1Z5Pe/ZTHW7md40+Y7+tHSZhev4ey8j0KZ52jFmzEFWjJmd7msSzCONChP0VHvgU25rmUcWUJZXw==","signatures":[{"sig":"MEYCIQClByaxt/cYQ17Dc1Bk5LtcJa9t7RrFx1kbFccDWv+TLwIhAPuG3ACdV8GHg6a1z9/zvNjEZqTyhzrGGZo0pt2Fw967","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":57829,"noattachment":false,"key":"/thriftify/-/thriftify-1.0.0-alpha13.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.19","debug":"^2.1.3","error":"^6.0.0","pegjs":"^0.8.0","lodash":"^3.5.0","thriftrw":"v1.0.0-beta3"},"devDependencies":{"opn":"^1.0.1","tape":"^3.4.0","itape":"^1.5.0","istanbul":"^0.3.5","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","publish_time":1429915219129,"_cnpm_publish_time":1429915219129},"1.0.0-alpha12":{"name":"thriftify","version":"1.0.0-alpha12","keywords":[],"author":{"name":"Lei Zhao","email":"leizha@uber.com"},"_id":"thriftify@1.0.0-alpha12","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":"a9bb4dfaf97d8f5b4fa31196d0a54ac61821feef","tarball":"http://registry-npm.ywwl.com/thriftify/download/thriftify-1.0.0-alpha12.tgz","integrity":"sha512-DFEo26iAhokFH8dknHmGXIWbm6nMD2TkLUT/3Vmi+F2Se4rj8n9/84TTg+p6qFy+YQQO5rQ/Y1/dwPZZ0brVcQ==","signatures":[{"sig":"MEQCIEsutO7WHHa46JfbMsk9kR7m4XtDwS7OrMkoGIaNeC6zAiA7NHZE2Vz3wx0hK17V4kJLpO5EbFpG20Pw9dd1YiJ9LA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":58539,"noattachment":false,"key":"/thriftify/-/thriftify-1.0.0-alpha12.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.19","debug":"^2.1.3","error":"^6.0.0","pegjs":"^0.8.0","lodash":"^3.5.0","thriftrw":"v1.0.0-beta3"},"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","publish_time":1428968596684,"_cnpm_publish_time":1428968596684},"1.0.0-alpha11":{"name":"thriftify","version":"1.0.0-alpha11","keywords":[],"author":{"name":"Lei Zhao","email":"leizha@uber.com"},"_id":"thriftify@1.0.0-alpha11","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":"36c5ab1ca4fcfdc95b5ce7b3211446c9840756fe","tarball":"http://registry-npm.ywwl.com/thriftify/download/thriftify-1.0.0-alpha11.tgz","integrity":"sha512-C7uktt9V4it8B5AbsedIX0stWCZg5V4Gv4/Ige3jn0vqdVfVdI9sBw2tINTssWICrh3gPTM5NVxm8I+A/dSprw==","signatures":[{"sig":"MEQCIBioR1ciJiIsvkmFByyYjMlL6t5CL302Ze7egOXccju0AiAlMibP0yNBWMmwYy7jh3iVUeL7iH65Cb7V8yA6VLXDuA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":58547,"noattachment":false,"key":"/thriftify/-/thriftify-1.0.0-alpha11.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.19","debug":"^2.1.3","error":"^6.0.0","pegjs":"^0.8.0","lodash":"^3.5.0","thriftrw":"v1.0.0-beta3"},"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","publish_time":1428968412693,"_cnpm_publish_time":1428968412693},"1.0.0-alpha10":{"name":"thriftify","version":"1.0.0-alpha10","keywords":[],"author":{"name":"Lei Zhao","email":"leizha@uber.com"},"_id":"thriftify@1.0.0-alpha10","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":"6293db9495d2d1c80369b0350a57aac700ecf80f","tarball":"http://registry-npm.ywwl.com/thriftify/download/thriftify-1.0.0-alpha10.tgz","integrity":"sha512-JEODykdPLU10xyJrhMoci4v12maFKTihZJ9Itf+mjWykMfPUOtj+EieBulOyI4huyM2q8jyFa7EKL7l8AjqDMw==","signatures":[{"sig":"MEUCIFmKmHw6vrh4L/HXTM9HvQtLAIrAd7Fpm0uTua0xtnQcAiEA3TXpJu09RjVoToz98NJWtPyRgoD78yPXLKqHq3Lfqlw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":58531,"noattachment":false,"key":"/thriftify/-/thriftify-1.0.0-alpha10.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":"v1.0.0-beta3"},"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","publish_time":1428712249020,"_cnpm_publish_time":1428712249020},"1.0.0-alpha9":{"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","publish_time":1428711687513,"_cnpm_publish_time":1428711687513}},"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","_attachments":{},"homepage":"https://github.com/uber/thriftify","bugs":{"url":"https://github.com/uber/thriftify/issues","email":"leizha@uber.com"}}