JavaScript Implimentation for MessagePack - compact serialization format
cuzic/MessagePack-JS
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more.
- Open with GitHub Desktop
- Download ZIP
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
* MessagePack-JS
JavaScript implimentation for MessagePack serialization format.
** usage
var $true = MessagePack.unpack("\xc3");
alert($true); // true
var int8 = MessagePack.unpack("\xd0\xc0"));
alert(int8); // -64
var fixraw = MessagePack.unpack("\xa1\x61");
alert(fixraw); // 'a'
var int32 = MessagePack.unpack("\xd2\xff\xf0\x00\x00");
alert(int32); // -1048576
** environment
tested for IE 8.0.6 , Firefox 3.6.3 , Google Chrome 4.1
** see other
http://msgpack.sourceforge.net/
** LISENCE
MIT Lisence
** Test
Test code (tests.html) requires JsUnit
Benchmark code needs prototype.js
If you want to test and benchmark msgpack.js,
please deploy as follows:
./lib/msgpack.js
./test/test_unpack.html
./test/test_pack.html
./test/test_xhr.html
# see jsunit < http://github.com/pivotal/jsunit >
./test/jsunit/testRunner.html
./test/jsunit/app/jsUnitCore.js
./test/jsunit/testRunner.html
./test/jsunit/app/jsUnitCore.js
./benchmark/benchmark.html
# see prototype.js < http://www.prototypejs.org/ >
./benchmark/prototype/prototype.js
Before you test test_xhr.html, you must start server.rb.
> ruby server.rb
server.rb require Ruby MessagePack Library.
Please install Ruby MessagePack Library:
> gem install msgpack
About
JavaScript Implimentation for MessagePack - compact serialization format
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published