Socket
Socket
Sign inDemoInstall

phantomjs-dirty

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phantomjs-dirty

A [dirty](https://github.com/felixge/node-dirty) key-value database clone for PhantomJS and its synchronous CommonJS Filesystem/A IO. Database files are fully compatible between implementations.


Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 20 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc