virtual-leveldown
Windows | Mac/Linux |
---|---|
LevelDOWN drop-in replacement that reads from a leveldb store, but writes to memory. It behaves like a leveldown, but all changes (put / del) are only made in memory, so that the original leveldb instance remains unchanged.
Install with npm install virtual-leveldown
Note that this is only a 3-lines tiny wrapper around virtualdown, that already ships with leveldown.
example
var virtualDOWN = var db = // filled with cats db