https://github.com/squaremo/msgpack-codec-nodejs
The msgpack codec, in Node.JS JavaScript, using require('bitsyntax').
https://github.com/squaremo/msgpack-codec-nodejs
Last synced: about 1 month ago
JSON representation
The msgpack codec, in Node.JS JavaScript, using require('bitsyntax').
- Host: GitHub
- URL: https://github.com/squaremo/msgpack-codec-nodejs
- Owner: squaremo
- Created: 2012-05-10T16:29:04.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-05-22T15:23:13.000Z (about 14 years ago)
- Last Synced: 2025-01-25T05:41:13.883Z (over 1 year ago)
- Language: JavaScript
- Size: 97.7 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
msgpack codec for Node.JS
=========================
The msgpack codec, in Node.JS JavaScript, using
`require('bitsyntax')`. Using bitsyntax simplifies some bits and keeps
the line count down.
API
---
var unpack = require('./index').parse;
// unsigned 8-bit int
unpack(new Buffer([0xcc, 67]));
// -> { value: 67, rest: }
// fixed map encoding
unpack(new Buffer([129, 161, 65, 161, 66]));
// -> { value: { A: }, rest: }