GitXplorerGitXplorer
s

thriftrw

public
0 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
cc94ca514c219a2bbc880b983326a06e02ccd369

Merge pull request #48 from uber/now-called-thrift

kkriskowal committed 9 years ago
Unverified
a2eefdd503a1c131130e88faa16c3d552229db9a

s/spec/thrift/g

kkriskowal committed 9 years ago
Unverified
9d7710fadd01582cadec2c37cbd5da888255a6fd

Merge pull request #46 from uber/ast

kkriskowal committed 9 years ago
Unverified
da8c21c60361ba608b92a95589c6a207e99260e2

Factor syntax tree into module

kkriskowal committed 9 years ago
Unverified
41056d16acefe848246f9477026a1c0c850abd8c

Merge pull request #44 from uber/errors

kkriskowal committed 9 years ago
Unverified
12f470fff63c7a75c4e1f93485e4abedef780a0f

Normalize style for errors and results

kkriskowal committed 9 years ago

README

The README file for this repository.

thriftrw

thrift encoding/decoding using bufrw

Example

var thriftrw = require("thriftrw");
var bufrw = require('bufrw');

var struct = new thriftrw.TStruct();
struct.fields.push(
    new thriftrw.TField(thriftrw.TYPE.STRING, 1, new Buffer('hello')
);

var buf = bufrw.toBuffer(thriftrw.TStructRW, struct);
console.log('created a binary buffer of thrift encoded struct', buf);

var struct2 = bufrw.fromBuffer(thriftrw.TStructRW, buf);
console.log('created a TStruct from a binary buffer', struct2);

Installation

npm install thriftrw

Tests

npm test

NPM scripts

  • npm run add-licence This will add the licence headers.
  • npm run cover This runs the tests with code coverage
  • npm run lint This will run the linter on your code
  • npm test This will run the tests.
  • npm run trace This will run your tests in tracing mode.
  • npm run travis This is run by travis.CI to run your tests
  • npm run view-cover This will show code coverage in a browser

Contributors

  • Lei Zhao

MIT Licenced