msgpack-plugin

A Message Pack plugin for Hapi.


Keywords
msg-pack, messagePack, msgPack, json, hapi, plugin, v18
License
MIT
Install
npm install msgpack-plugin@1.0.7

Documentation

Build Status

msg-pack-plugin for Hapi v18

  • npm install msg-pack-plugin --save

  • Plugin registration:

        server.register(require('msg-pack-plugin'));
  • To validate using the example in the source you could use curl (this assumes you have msgpack2json installed):

        curl --header "accept: application/x-msgpack" 'http://localhost:3000/api/user' | msgpack2json -d