Skip to main content

JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python.

Project description

Translates JavaScript to Python code. jsemulator is able to translate and execute virtually any JavaScript code.

jsemulator is written in pure python and does not have any dependencies. Basically an implementation of JavaScript core in pure python.

import jsemulator

f = jsemulator.eval_js( “function $(name) {return name.length}” )

f(“Hello world”)

# returns 11

Now also supports ECMA 6 through jsemulator.eval_js6(js6_code)!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jsemulator-0.7.4.tar.gz (568.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jsemulator-0.7.4-py3-none-any.whl (610.0 kB view details)

Uploaded Python 3

File details

Details for the file jsemulator-0.7.4.tar.gz.

File metadata

  • Download URL: jsemulator-0.7.4.tar.gz
  • Upload date:
  • Size: 568.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for jsemulator-0.7.4.tar.gz
Algorithm Hash digest
SHA256 9fe8a0f657ea14c5bc935c11c026b30c80751e71ef2388317602bd9c61d8d9ec
MD5 85be3ae607983c5fbab1aa9739a905b4
BLAKE2b-256 371a157726d06b0ccd038778fba57c2ef56a1930db0a0aa50b9af45ae46a5e8e

See more details on using hashes here.

File details

Details for the file jsemulator-0.7.4-py3-none-any.whl.

File metadata

  • Download URL: jsemulator-0.7.4-py3-none-any.whl
  • Upload date:
  • Size: 610.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for jsemulator-0.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3a0e2c340fda798eeed9aaee2be8e584dc37f92f38a7029ed0fa602c1bcd4706
MD5 1d7e576cd0d5bcf6191628f714b6ea2c
BLAKE2b-256 09eb7f216fbd2f2d6e8a7e8a6ad1d368efc03e9ac034c7f4844eb0b9b23d89fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page