I am having a function in a js file which uses an npm library and provides some response. Now since my app is running on python, I intend to use this js function from a python script.
eg:- I have a file pure.js
function add(a, b) {
return a + b;
}
the python file --> main.py
import pure
print(pure.add(5, 7))
is there any way to use the add function from the pure.js file in main.py?