Class: io

io

Main flatly class used to load db and query data


new io()

I/O Operations for the flatly library

Source:

Methods


getAll(options)

Takes a glob pattern and returns an array of table files

Parameters:
Name Type Description
options Object
Properties
Name Type Argument Default Description
src String

Glob pattern of target files

format string <optional>
JSON

A string switch that tells flatly what format the source files are in

Source:
Returns:
Type
Array
Example
var files = io.getAll('../data/*.json')