simonlast/node-persist — pull request #17 by broox (2014-01-28 17:29:08+00:00)
Title: Make ParseString exceptions return undefined

If there's a problem parsing a persisted value, it seems more fitting to return `undefined` instead of an empty object (since we can persist things other than objects).

I came across this when an `undefined` variable was persisted to the filesystem.

Running `JSON.parse(undefined)` will throw an error, which caused this library to return an empty object rather than a falsy value.