Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ Translating a JavaScript file:
>>> example.someFunction()
...
```

Translating multiple JavaScript files:

```python
import js2py
import pathlib
for js_path in pathlib.Path(".").rglob("*.js"):
py_path = js_path.with_suffix(".py")
print(f"translating {js_path}")
js2py.translate_file(js_path, py_path)
```

Every feature of ECMA 5.1 is implemented (except of 'with' statement):

Expand Down