creationix / msgpack-js

The msgpack protocol implemented in pure javascript.
http://msgpack.org/
MIT License
253 stars 48 forks source link

typo in your example ? #12

Closed amiracam closed 10 years ago

amiracam commented 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.

creationix commented 10 years ago

Yeah, the library name changed a while back and I forgot to update the example. Fixed in 9b601f13526e6a8bb649de510649336021836b5e