Closed implausible closed 4 years ago
@implausible this is looking great! Would you mind updating the README to emphasize modern syntax? I would change the Simple and Advanced examples and add a new section Legacy with a callback example.
@dachev Sure can. I have updated the documentation. Let me know if you have any additional requests!
Beautiful! Thank you @implausible
It looks like it might be beneficial for electron-spellchecker for this library to have a true async API. See https://github.com/electron-userland/electron-spellchecker/pull/170.
Since we were already using the node callback pattern, most users have been promisifying this call anyway. I've preserved the callback API so that it should not be a breaking change (unless someone depended on the implementation actually being synchronous).