You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
311 B
17 lines
311 B
14 years ago
|
var json = {
|
||
|
encode: JSON.stringify,
|
||
|
decode: JSON.parse
|
||
|
};
|
||
|
|
||
14 years ago
|
var MsgPack = require('node-msgpack');
|
||
14 years ago
|
msgpack = {
|
||
14 years ago
|
encode: MsgPack.pack,
|
||
|
decode: function(str) { return MsgPack.unpack(new Buffer(str)); }
|
||
|
};
|
||
14 years ago
|
|
||
|
bison = require('bison');
|
||
|
|
||
14 years ago
|
module.exports = json;
|
||
14 years ago
|
//module.exports = msgpack;
|
||
14 years ago
|
//module.exports = bison;
|