git ssb

0+

cel-desktop / ssb-pkg



Tree: 1eb144e388da5f1a3466703f56ac4ab591d700fc

Files: 1eb144e388da5f1a3466703f56ac4ab591d700fc / 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