-
-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggesting an autosave
option
#28
Comments
Picking out the ones irrelevant, why not, it'll improve performances. However, when Node 0.12 will be out (no date though), it should be possible to listen to object changes with Regarding the autosave, you can already but it's not very beautiful: var db = low() // no filename, so there's no autosave
fs.writeFileSync(filename, JSON.stringify(db.object)) I think about making something like what you suggested: var db = low(filename, { autosave: false })
db.save()
// or
var db = low()
db.save(filename) |
Oh you're right.. :) |
It's okay, thanks for the offer and the feedback :) |
Just published var db = low(filename, { autosave: false })
db.saveSync() var db = low()
db.saveSync(filename) Both examples will do the same. |
👍 I see the change, |
Hi, Just as an update, I've released Also, it has been updated to lodash |
Awesome! |
Hey, I doubt the composing on all functions including irrelevant ones (like
isRegExp
)Shall we pick out the ones?
Or give it an
autosave
option which defaults totrue
, like:The text was updated successfully, but these errors were encountered: