unjs / std-env

Runtime Agnostic JS utils
MIT License
439 stars 25 forks source link

QuickJS and JerryScript detection #69

Open ClassicOldSong opened 11 months ago

ClassicOldSong commented 11 months ago

Describe the feature

QuickJS and JerryScript (maybe also Duktape) are also used in actual JavaScript development. Is it feasible to add support for these runtimes?

Also console usually aren't provided directly from these runtimes, might also add a platform-agnostic console here?

Additional information

pi0 commented 11 months ago

Thanks for opening issue! Do you have any info about how we can detect https://github.com/bellard/quickjs and https://github.com/jerryscript-project/jerryscript runtimes?

For console, are you thinking of a stub?

ClassicOldSong commented 11 months ago

Currently no idea since I haven't thought about detecting different environments with a single package (but hey you made one!).

I'll keep an eye on this later on, but lacking console.log and everything console might be one diameter for the detection.