msgpack-plugin

A Message Pack plugin for Hapi.

Usage no npm install needed!

<script type="module">
  import msgpackPlugin from 'https://cdn.skypack.dev/msgpack-plugin';
</script>

README

Build Status

msg-pack-plugin for Hapi v18

  • npm install msg-pack-plugin --save

  • Plugin registration:

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

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