Along the way I did some other changes, like replacing callbacks with async/await and how the module script is created. Next up is getting the tests passing and a build setup for the worker.
Would you be interested in having these changes upstream? Most of them are breaking changes - even just getting modules wired up idiomatically means dropping the global Rainbow - so it'd have to be a 3.0.
First, this is a great library! - it's the best organized and documented highlighter in JS I've found.
I've been in need of a pure JS modules highlighter, so I forked Rainbow and ported it to modules here: https://github.com/justinfagnani/rainbow
Along the way I did some other changes, like replacing callbacks with async/await and how the module script is created. Next up is getting the tests passing and a build setup for the worker.
Would you be interested in having these changes upstream? Most of them are breaking changes - even just getting modules wired up idiomatically means dropping the global
Rainbow
- so it'd have to be a 3.0.Thanks for the great project!