{"_id":"notepack","_rev":"7-03035005dedcb336c96a1e9af97e5da0","name":"notepack","description":"A fast Node.js implementation of the latest MessagePack spec","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"notepack","version":"0.0.1","description":"[![Build Status](https://travis-ci.org/coinative/notepack.svg?branch=master)](https://travis-ci.org/coinative/notepack) [![Coverage Status](https://img.shields.io/coveralls/coinative/notepack.svg)](https://coveralls.io/r/coinative/notepack?branch=master)","main":"lib/index.js","repository":{"type":"git","url":"https://github.com/coinative/notepack.git"},"author":{"name":"Ben Shepheard","email":"ben@coinative.com"},"license":"MIT","bugs":{"url":"https://github.com/coinative/notepack/issues"},"homepage":"https://github.com/coinative/notepack","devDependencies":{"benchmark":"^1.0.0","benchtable":"0.0.2","chai":"^1.9.1","istanbul":"^0.2.10","mocha":"^1.18.2","msgpack":"^0.2.3","msgpack-js":"^0.3.0"},"scripts":{"test":"mocha -r ./test/support/env -R dot ./test","test-cov":"istanbul cover ./node_modules/mocha/bin/_mocha -- -r ./test/support/env -R dot ./test","test-travis":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -r ./test/support/env -R spec ./test"},"_id":"notepack@0.0.1","_shasum":"124936cf1546f85d6177f51d7db6ca59bfcfc875","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"hypergeometric","email":"ben.shepheard@iondrivesoftware.com"},"maintainers":[{"name":"hypergeometric","email":"ben.shepheard@iondrivesoftware.com"}],"dist":{"shasum":"124936cf1546f85d6177f51d7db6ca59bfcfc875","tarball":"https://registry.npmjs.org/notepack/-/notepack-0.0.1.tgz","integrity":"sha512-bdNtYY0IX5vLUWExR7gJzGLtR4nfBk5kD+X3TXnNRKXknZzeQ9j4yU0GtxIxaeGVugwV7hNLOzOp/SsoDO/LfQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHF4kPhka0Hgd4Kl4g70mMW7IJpViTQXAOAv4cE07Su3AiEA7Fluof658FcpX1VmPU+qQ2EUlCJTWWyJ8RMIU0a4TYo="}]},"directories":{}},"0.0.2":{"name":"notepack","version":"0.0.2","description":"A fast Node.js implementation of the latest MessagePack spec","main":"lib/index.js","repository":{"type":"git","url":"https://github.com/coinative/notepack.git"},"author":{"name":"Ben Shepheard","email":"ben@coinative.com"},"license":"MIT","bugs":{"url":"https://github.com/coinative/notepack/issues"},"homepage":"https://github.com/coinative/notepack","devDependencies":{"benchmark":"^1.0.0","benchtable":"0.0.2","chai":"^1.9.1","istanbul":"^0.2.10","mocha":"^1.18.2","msgpack":"^0.2.3","msgpack-js":"^0.3.0"},"scripts":{"test":"mocha -r ./test/support/env -R dot ./test","test-cov":"istanbul cover ./node_modules/mocha/bin/_mocha -- -r ./test/support/env -R dot ./test","test-travis":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -r ./test/support/env -R spec ./test"},"_id":"notepack@0.0.2","_shasum":"538bd136066f74adca29af813cf0fbbc00637f4b","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"hypergeometric","email":"ben.shepheard@iondrivesoftware.com"},"maintainers":[{"name":"hypergeometric","email":"ben.shepheard@iondrivesoftware.com"}],"dist":{"shasum":"538bd136066f74adca29af813cf0fbbc00637f4b","tarball":"https://registry.npmjs.org/notepack/-/notepack-0.0.2.tgz","integrity":"sha512-Xp1oBR+cRV+nFHL5jqP/VO1axydb3NMFbuh0+U5POMOZ7IbGepx/TQ3u8MtiU4+XItECzJc0g3wYe5EZX2VHwQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAoBBtT3SlvUhsv6LGag1b+qy+QkwnVlWPS7LTiIDzc6AiEA7RApzMpXxkZU0k+kUbt4sz1wyhxGszGcx0Yxvz7eSqM="}]},"directories":{}}},"readme":"# notepack\n\n[![Build Status](https://travis-ci.org/coinative/notepack.svg?branch=master)](https://travis-ci.org/coinative/notepack) [![Coverage Status](https://img.shields.io/coveralls/coinative/notepack.svg)](https://coveralls.io/r/coinative/notepack?branch=master)\n\nA fast [Node.js](http://nodejs.org) implementation of the latest [MessagePack](http://msgpack.org) [spec](https://github.com/msgpack/msgpack/blob/master/spec.md).\n\n## Notes\n\n* This implementation is not backwards compatible with those that use the older spec. It is recommended that this library is only used in isolated systems.\n* `undefined` is encoded as `fixext 1 [0, 0]`, i.e. `<Buffer d4 00 00>`\n* `Date` objects are encoded as `fixext 8 [0, ms]`, e.g. `new Date('2000-06-13T00:00:00.000Z')` => `<Buffer d7 00 00 00 00 df b7 62 9c 00>`\n\n## Install\n\n```\nnpm install notepack\n```\n\n## Usage\n\n```js\nvar notepack = require('notepack');\n\nvar encoded = notepack.encode({ foo: 'bar'}); // <Buffer 81 a3 66 6f 6f a3 62 61 72>\nvar decoded = notepack.decode(encoded); // { foo: 'bar' }\n```\n\n## Performance\n\nPerformance is currently comparable to msgpack-node (which presumably needs optimizing and suffers from JS-native overhead) and is significantly faster than other implementations. Several micro-optimizations are used to improve the performance of short string and Buffer operations.\n\nThe `./benchmarks/run` output on my machine is:\n\n```\nEncoding (this will take a while):\n+----------------------------+-----------------+-----------------+----------------+---------------+\n|                            │ tiny            │ small           │ medium         │ large         |\n+----------------------------+-----------------+-----------------+----------------+---------------+\n| notepack                   │ 758,340 ops/sec │ 172,415 ops/sec │ 18,614 ops/sec │ 262 ops/sec   |\n+----------------------------+-----------------+-----------------+----------------+---------------+\n| msgpack-js                 │ 100,768 ops/sec │ 27,229 ops/sec  │ 3,044 ops/sec  │ 93.47 ops/sec |\n+----------------------------+-----------------+-----------------+----------------+---------------+\n| msgpack-node               │ 206,825 ops/sec │ 107,619 ops/sec │ 20,362 ops/sec │ 284 ops/sec   |\n+----------------------------+-----------------+-----------------+----------------+---------------+\n| JSON.stringify (to Buffer) │ 528,632 ops/sec │ 154,229 ops/sec │ 12,023 ops/sec │ 7.82 ops/sec  |\n+----------------------------+-----------------+-----------------+----------------+---------------+\nDecoding (this will take a while):\n+--------------------------+-------------------+-----------------+----------------+---------------+\n|                          │ tiny              │ small           │ medium         │ large         |\n+--------------------------+-------------------+-----------------+----------------+---------------+\n| notepack                 │ 756,003 ops/sec   │ 163,630 ops/sec │ 15,771 ops/sec │ 144 ops/sec   |\n+--------------------------+-------------------+-----------------+----------------+---------------+\n| msgpack-js               │ 425,628 ops/sec   │ 101,821 ops/sec │ 10,117 ops/sec │ 123 ops/sec   |\n+--------------------------+-------------------+-----------------+----------------+---------------+\n| msgpack-node             │ 717,093 ops/sec   │ 165,781 ops/sec │ 23,506 ops/sec │ 155 ops/sec   |\n+--------------------------+-------------------+-----------------+----------------+---------------+\n| JSON.parse (from Buffer) │ 1,441,579 ops/sec │ 396,923 ops/sec │ 28,594 ops/sec │ 33.94 ops/sec |\n+--------------------------+-------------------+-----------------+----------------+---------------+\n* Note that JSON is provided as an indicative comparison only\n```\n\n## License\n\nMIT\n","maintainers":[{"name":"hypergeometric","email":"ben.shepheard@iondrivesoftware.com"}],"time":{"modified":"2022-06-22T06:05:42.686Z","created":"2014-06-16T11:15:48.375Z","0.0.1":"2014-06-16T11:15:48.375Z","0.0.2":"2014-06-16T11:22:16.173Z"},"homepage":"https://github.com/coinative/notepack","repository":{"type":"git","url":"https://github.com/coinative/notepack.git"},"author":{"name":"Ben Shepheard","email":"ben@coinative.com"},"bugs":{"url":"https://github.com/coinative/notepack/issues"},"license":"MIT","readmeFilename":"README.md","users":{"bitofgoldgames":true}}