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!');});