From this directory, run:
$ npm install # pull dependencies
$ npm run lint -- <filename> # run tslint
$ npm run build # build typescript (run tsc and webpack)
$ npm run test # run the unit tests (node.js only)
The library is designed to be used with node.js or in the browser, this repository contains examples of both.
Import the arrow module:
var arrow = require("arrow");
See bin/arrow_schema.js and bin/arrow2csv.js for usage examples.
Include _bundles/arrow.js
in a <script />
tag:
<script src="_bundles/arrow.js"/>
See examples/read_file.html for a usage example.
Returns an ArrowReader
object representing the Arrow file or stream contained in
the buffer
.
Loads the next record batch and returns it's length.
Returns a JSON representation of the file's Arrow schema.
Returns a list of Vector
objects, one for each column.
Vector objects have, at minimum, a get(i)
method and a length
attribute.
Return a Vector object for column name