Brute-force file-based store
This is an implementation of a Swish store backed by a file. If no file is specified, it's memory-only. If the specified file does not exist, it is created.
This module is not suitable for most environments, it is mostly a development tool. it is not safe to use by more than one "connection" at a time. It is also rather inefficient, as it keeps the entire store in memory, and uses tv4
to scan through every record when searching.
var Brute = ; // Memory-only (no persistent disk store)var db = ; // Synchronous - throws error if file open/create failsvar db = 'db.json'; // Asynchronousvar db = 'db.json' {...}; // Alternatively;