rpep-bson
v1.0.1
Published
BSON serialization for rpep.js
Downloads
4
Maintainers
Readme
rpep-msgpack
This is a BSON serialization for rpep.js using mongodb/js-bson. RPEP is a simple, light-weight protocol for request-response and stream-event style communication between peers.
Install
yarn install rpep-bson
Usage
Accessing rpep:
// node.js
var rpepBson = require('rpep-bson')
// amd
require.config({paths: {rpepBson: '../dist/rpep-bson.umd.js'}})
require(['rpepBson'], function(rpepBson) { /* your code */ })
// global variable
<script src="rpep-bson.umd.js"></script>
rpepBson; // rpep-bson.umd.js can define rpepBson globally if you really
// want to shun module-based design
License
Released under the MIT license: http://opensource.org/licenses/MIT