Parsing HTML inGJS / alternative to JSOM

I’m looking to write an application in GJS that needs to parse HTML from web requests. In NodeJS I used JSDOM for this. What are my options in GJS?

Probably not good, to be honest.

A good way to define the difference between GJS and node.js is how we use it to build a JavaScript environment on top of the GNOME platform, whereas node.js builds a platform underneath.

If JSDOM or it’s dependencies don’t actually require node, but just an engine with compatible JS features, you may be able to write some simple wrappers to bridge it with GJS. Otherwise, it may be simpler to either find a “truly pure” JS library, or just write the functionality you need.