git ssb

0+

cel-desktop / ssb-pkg



Tree: d456a6cc8589489e558e6164750474ed2cfc961e

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