Narcoleptic Pony Machine
Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

phantomjs-dirty

1.0.0 • Public • Published

Phantomjs-dirty

A dirty key-value database clone for PhantomJS and its synchronous CommonJS Filesystem/A IO. Database files are fully compatible between implementations.

Warning

Multi-process write usage of the same database file will corrupt it. There are is no file locking support in CommonJS Filesystem/A.

Running tests

For running tests, development dependencies must be installed first.

npm install
make test

Example

var dirty = require('./node_modules/phantomjs-dirty');

var db = dirty.open('test.dirty');

db.set('a-key', { a: 1 });

console.log(db.get('a-key'));

db.forEach(function(key, val) {

    console.log(key + ': ' + val);
});

License

The MIT License.

install

npm i phantomjs-dirty

Downloadsweekly downloads

7

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability