/jsarrow

JavaScript implementation of the Apache Arrow format.

Primary LanguageC++Apache License 2.0Apache-2.0

JSArrow

This is an unofficial work-in-progress implementation of the Apache Arrow format in JavaScript.

Installation (Mac OS X and Linux)

Before installing the JavaScript library, you must install the C++ libraries.

Define an $ARROW_HOME environment variable to specify where you want the Arrow C++ libraries to be installed (i.e., /usr/local).

Make sure you have cmake installed and added to your PATH. Then run:

git clone https://github.com/apache/arrow.git
cd arrow/cpp
source setup_build_env.sh
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$ARROW_HOME ..
make
sudo make install

To install the JavaScript library:

npm install danrobinson/jsarrow

Examples

var convert = require('jsarrow').convert;

var stringArray = convert(["foo", "bar"]);
var numberArray = convert([1, 3]);

console.log(stringArray);
console.log(numberArray);
console.log(stringArray.length);
console.log(numberArray.length);
console.log(stringArray[0]);
console.log(numberArray[0]);