GitHub - EvanZhouDev/polycompiler: Merge Python and JS code into one file that can be run in both languages.
Polycompiler
See how it works on YouTube.
An experimental project to attempt to merge arbitrary Python and JS code into one source file.
For example, the following code prints Hello JS when run with Node, and Hello Python when run with Python 3.
1 // (lambda: exec("print('Hello Python')", globals()) or 1)()
lambda: eval("console.log('Hello JS')")
Installation & Use
Here's how you can get started with Polycompiler in a few simple steps.
Install polycompiler on NPM:
Merge your files
Now, run the p...
Read more at github.com