git ssb

0+

cel-desktop / ssb-pkg



Tree: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1

Files: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1 / 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