Sadly, the moment you let one of those little promise monsters in, the whole place goes to hell. If only deasync was maintained and worked with promises, or if TC39 had just let things be and I could have lived a beautiful life of only callbacks.
- Re-think usage of library as async
- Re-write documentation around this approach
- Change some implementations around this.
Things that can be async:
- Use of
fs for read/write (existsSync is probably fine)
html-minifier-terser
Sadly, the moment you let one of those little promise monsters in, the whole place goes to hell. If only
deasyncwas maintained and worked with promises, or if TC39 had just let things be and I could have lived a beautiful life of only callbacks.Things that can be async:
fsfor read/write (existsSyncis probably fine)html-minifier-terser