I am a Python user, but I have never worked with JavaScript. I am trying to run a JS file in my Python Flask Project, but I do not know how to make it work. I am using the Naked library in my python code to call the JS file like this:
responseJS = muterun_js('sign.js', parameters)
signatureData = responseJS.stdout.decode("utf-8")
This is supposed to work, but I do not know how to create the sign.js file. I have to import one package to make it work, and then run some JS code which is not important for the purpose of this question. So, the question is, how do I import a library in my JS file, so once I call it from my python works? The package is: require("@sorare/crypto")
Thank you for your help