paulbartrum / jurassic

A .NET library to parse and execute JavaScript code.
MIT License
868 stars 121 forks source link

How to run and use the Cheerio library or jsdom #226

Closed sqlnew closed 8 months ago

sqlnew commented 9 months ago

I want to simulate a DOM environment without a browser on the backend server and use the JQuery library, so I want to use the Cheerio library or JSdom. May I ask how to use these JS libraries in the Jurassic environment? Thank you.

paulbartrum commented 8 months ago

In general you can use a JS library in Jurassic just by executing the script files. However, if it's intended for Node.JS then it may be using JS features Jurassic doesn't support. (Especially since I haven't updated this project in a while.)