codec.js 311 B

12345678910111213141516
  1. var json = {
  2. encode: JSON.stringify,
  3. decode: JSON.parse
  4. };
  5. var MsgPack = require('node-msgpack');
  6. msgpack = {
  7. encode: MsgPack.pack,
  8. decode: function(str) { return MsgPack.unpack(new Buffer(str)); }
  9. };
  10. bison = require('bison');
  11. module.exports = json;
  12. //module.exports = msgpack;
  13. //module.exports = bison;