git ssb

0+

cel-desktop / ssb-pkg



Tree: efcf9fd06b02fa9bcd28681b4c777224e19702bb

Files: efcf9fd06b02fa9bcd28681b4c777224e19702bb / 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