node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

dirty-compact

dirty-compact

Compact a node-dirty database.

Example

var compact = require('dirty-compact').compact;
 
compact('./database.db', './database.db.bak', function (err) {
  if (err) {
    throw err;
  }
 
  console.log('Success!');
});