Closed amiracam closed 10 years ago
this:
var msgpack = require('msgpack'); var assert = require('assert');
var initial = {Hello: "World"}; var encoded = msgpack.encode(initial); var decoded = msgpack.decode(encoded);
assert.deepEqual(initial, decoded);
did not work because it could not find msgpack and after having done the msgpack-js install.
I assume that what was intended is :+1: require('msgpack-js')
after doing so, your example worked fine.
Yeah, the library name changed a while back and I forgot to update the example. Fixed in 9b601f13526e6a8bb649de510649336021836b5e
this:
var msgpack = require('msgpack'); var assert = require('assert');
var initial = {Hello: "World"}; var encoded = msgpack.encode(initial); var decoded = msgpack.decode(encoded);
assert.deepEqual(initial, decoded);
did not work because it could not find msgpack and after having done the msgpack-js install.
I assume that what was intended is :+1: require('msgpack-js')
after doing so, your example worked fine.