0.3.3 • Published 10 years ago

swish-file-brute v0.3.3

Weekly downloads
1
License
ISC
Repository
-
Last release
10 years ago

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 = require('swish-file-brute');

// Memory-only (no persistent disk store)
var db = new Brute();

// Synchronous - throws error if file open/create fails
var db = new Brute('db.json');

// Asynchronous
var db = new Brute('db.json', function (error) {...});

// Alternatively
Brute('db.json', function (error, db) {...});
0.3.3

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago