Skip to content

Node.js services that convert CBOR, MessagePack and BSON to JSON and vice-versa

Notifications You must be signed in to change notification settings

KonkerLabs/konker-binary-services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

konker-binary-services

Node.js services that convert CBOR, MessagePack and BSON to JSON and vice-versa

msgpack

GET msgpack <this-server-adress>:3000/msgpack

RESPONSE is a msgpack encoded JSON {'name':'earth', 'planet':true, 'number': 3, 'gravity': 9.807}

POST msgpack body to: <this-server-adress>:3000/msgpack/unpack

RESPONSE: msgpack converted to JSON 

POST JSON body to: <this-server-adress>:3000/msgpack/pack

RESPONSE: JSON converted to msgpack 

CBOR

GET CBOR <this-server-adress>:3000/CBOR

RESPONSE is a CBOR encoded JSON {'name':'earth', 'planet':true, 'number': 3, 'gravity': 9.807}

POST CBOR body to: <this-server-adress>:3000/CBOR/unpack

RESPONSE: CBOR converted to JSON 

POST JSON body to: <this-server-adress>:3000/CBOR/pack

RESPONSE: JSON converted to CBOR 

BSON

GET BSON <this-server-adress>:3000/BSON

RESPONSE is a BSON encoded JSON {'name':'earth', 'planet':true, 'number': 3, 'gravity': 9.807}

POST BSON body to:<this-server-adress>:3000/BSON/unpack

RESPONSE: BSON converted to JSON

POST JSON body to: <this-server-adress>:3000/BSON/pack

RESPONSE: JSON converted to BSON 

Install

git clone https://github.com/KonkerLabs/konker-binary-services
cd konker-binary-services
npm install

Start

npm start

if you are getting errors, try this:

npm rebuild

And then

npm start

Releases

No releases published

Packages

No packages published