Hacker News new | ask | show | jobs
by tofumatt 4341 days ago
It uses Promises and callbacks, though you're right it doesn't use node-style. It's not a node library and I frankly dislike needing to supply error as a first arg, as strictly speaking it's optional and just adds cruft.

I had a few folks mention this in the early stages of library development but it hasn't come up since.

1 comments

probably best to prioritize de facto standards over your own personal aesthetic preferences.
Fair enough, I've asked the contributors/users what they think and am open to making the change for 1.0: https://github.com/mozilla/localForage/issues/219