pusher.flexvar

pusher.flexvar is a C++ module for conveniently dealing with JSON-like data.

pusher.flexvar

A C++ "flexible variable" library, designed for conveniently dealing with JSON/BSON-like data within C++.

It was designed to make writing the bridge code for C++ Node modules easier. It also happens to be fairly useful as a C++ library on its own. It allows code such as follows to be written in C++.

flexvar v, q;
q = 42.001f;
v["x"] = 4;
v["y"] = 12;
v["message"] = "Hello World";

This in turn is very easy to recursively copy into a v8::Handle<Object> for transfer of data into Javascript code.

This is a bit of an experiment in distributing C++ code via an NPM package...

TBD.

TBD.

TBD.

TBD.

This isn't directly support. The flexvar library is intended to be lightweight and without direct dependencies on V8. A library for data sharing between C++ and Javascript (while very useful) would look quite different from the current flexvar library.

TBD.

Build the project and run the unittest executable.

  • None

Currently only tested on Windows in a Visual Studio + cygwin environment; however should be usable on any platform with minimal changes.

npm install --dev
node rebuild.js