git ssb

0+

cel-desktop / ssb-pkg



Tree: e9d9dec1d00ff365112ca0f981bbda15e3682528

Files: e9d9dec1d00ff365112ca0f981bbda15e3682528 / test / test-79-npm / msgpack / msgpack.js

219 bytesRaw
1'use strict';
2
3var msgpack = require('msgpack');
4var o = { 'a': 1, 'b': 2, 'c': [ 1, 2, 3 ] };
5var b = msgpack.pack(o);
6var oo = msgpack.unpack(b);
7if (JSON.stringify(o) === JSON.stringify(oo)) {
8 console.log('ok');
9}
10

Built with git-ssb-web