node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. 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!');
});