gigo
Garbage-in-garbage-out: Soviet-style storage.
description
gigo is a mostly key-value data store. you give it data, it will store it. gigo is
"soviet-style storage" because it is very practical. it does not have a lot of bells
and whistles and isn't terribly efficient or fast. it does what it says on the tin;
no more, no less. in fact, gigo has only one bell or whistle, and that's its bind()
method, which gives you the ability to create more complex relationships between
data using simple JSON descriptor objects.
gigo is fast, because it is a node module backed by redis.
installation
npm install gigo
usage
(NOTE: this readme is a work in progress and the usage examples probably don't work)
gigo just needs to be required like any module:
var gigo = ;
gigo can be used for very simple storage:
gigo;console;// name is: gigo
it's aware of different kinds of data...
var result = bar: 0 foo: true;gigo;var restored = gigo;if restoredfoo === true console; // foo is true!gigo;console;// undefined
...but it keeps to its original promise of returning what it was given:
var { var pic = gigo; // ... send to client via HTTP response or whatever client;};var { fs;};
gigo pays attention when you describe relationships between things:
var { fs;};var image = name: "theme.jpg" data: null;
gigo can do some complex things, despite its simple nature:
var { fs; };var data = files: 'index.html' 'site.js' 'default.css' images: theme: false;var { filename: "theme.jpg" data: null}; ;;;
tests
gigo uses mocha and chai:
npm test
contributors
contributions to gigo are welcome. however, changes which are mostly stylistic or semantic will not be accepted. if you submit a patch or pull request, please understand that accepting the changes may take time, at least until science invents 96-hour days.
license
licensed under gpl v3