typicode/lowdb — pull request #31 by lcaballero (2014-12-31 06:52:18+00:00)
Title: save() method wasn't using optionally specified file.  When specified

the code used the filename specified on the db creation. These
changes use the filename if provided otherwise the originally
configured db.json file name. These updates apply to both sync and
async saves, but only sync were tested since the API doesn't include a
callback mechanism for the async file write (yet).