Repository URL to install this package:
|
Version:
0.3.0 ▾
|
msgpack-js
/
package.json
|
|---|
{
"author": {
"name": "Tim Caswell",
"email": "tim@creationix.com"
},
"name": "msgpack-js",
"description": "msgpack encoder and decoder in pure javascript",
"version": "0.3.0",
"repository": {
"type": "git",
"url": "git://github.com/creationix/msgpack-js.git"
},
"main": "msgpack.js",
"dependencies": {
"bops": "~0.0.6"
},
"devDependencies": {
"tape": "~1.0.2"
},
"scripts": {
"test": "node test.js"
},
"testling": {
"files": "test.js",
"browsers": [
"ie/9..latest",
"firefox/19..latest",
"chrome/25..latest",
"safari/latest",
"iphone/6",
"ipad/6"
]
},
"readme": "# msgpack for JavaScript\n\n[](https://travis-ci.org/creationix/msgpack-js)\n\n[](https://ci.testling.com/creationix/msgpack-js)\n\n\nA handwritten msgpack encoder and decoder for Node.JS and modern browsers.\n\nThe original format can be found at <http://wiki.msgpack.org/display/MSGPACK/Format+specification>\n\n\n## Extension\n\nI've extended the format a little to allow for encoding and decoding of `undefined` and `Buffer` instances.\n\nThis required three new type codes that were previously marked as \"reserved\".\nThis change means that using these new types will render your serialized data\nincompatible with other messagepack implementations that don't have the same\nextension.\n\nThere are two new types for storing node `Buffer` instances. These work just \nlike \"raw 16\" and \"raw 32\" except they are node buffers instead of strings.\n\n buffer 16 11011000 0xd8\n buffer 32 11011001 0xd9\n\nAlso I've added a type for `undefined` that works just like the `null` type.\n\n undefined 11000100 0xc4\n\n## Usage\n\n``` javascript\nvar msgpack = require('msgpack');\nvar assert = require('assert');\n\nvar initial = {Hello: \"World\"};\nvar encoded = msgpack.encode(initial);\nvar decoded = msgpack.decode(encoded);\n\nassert.deepEqual(initial, decoded);\n```\n\n",
"readmeFilename": "README.markdown",
"bugs": {
"url": "https://github.com/creationix/msgpack-js/issues"
},
"_id": "msgpack-js@0.3.0",
"dist": {
"shasum": "030ec08c5956f9ca7d17d40a572d5396fec10923",
"tarball": "http://registry.npmjs.org/msgpack-js/-/msgpack-js-0.3.0.tgz"
},
"_from": "msgpack-js@0.3.0",
"_npmVersion": "1.2.32",
"_npmUser": {
"name": "creationix",
"email": "tim@creationix.com"
},
"maintainers": [
{
"name": "creationix",
"email": "tim@creationix.com"
}
],
"directories": {},
"_shasum": "030ec08c5956f9ca7d17d40a572d5396fec10923",
"_resolved": "https://registry.npmjs.org/msgpack-js/-/msgpack-js-0.3.0.tgz",
"homepage": "https://github.com/creationix/msgpack-js#readme"
}