From 7a021b14533222d1072736dba2570ee73f40db94 Mon Sep 17 00:00:00 2001 From: Peter Griess Date: Wed, 26 May 2010 09:29:41 -0500 Subject: [PATCH] Add some CLI examples. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 52b9dcc..275e240 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,11 @@ As a convenience and for debugging, `bin/json2msgpack` and `bin/msgpack2json` are provided to convert JSON data to and from MessagePack data, reading from stdin and writing to stdout. + % echo '[1, 2, 3]' | ./bin/json2msgpack | xxd - + 0000000: 9301 0203 .... + % echo '[1, 2, 3]' | ./bin/json2msgpack | ./bin/msgpack2json + [1,2,3] + ### Building and installation This module depends on an unreleased feature of node.js; you must build it