A Python library for parsing and executing JavaScript code within Python applications.
pip install FromJS
from FromJS import import_js
# Import a JavaScript file
js_module = import_js('path/to/your/javascript/file.js')
# Use the imported JavaScript functionality
result = js_module.some_function()
- Parse JavaScript files and convert to Python objects
- Support for JavaScript variables, functions, and classes
- Handle ES6+ syntax including async/await
- Export management
This project is licensed under the MIT License - see the LICENSE file for details.