{"_id":"python-js","_rev":"47-84421b05b28ebf59297e2356ed4c57f9","name":"python-js","description":"python multi-translator: javascript, dart, coffee, lua, vis.js","dist-tags":{"latest":"0.9.8"},"versions":{"0.8.9":{"author":{"name":"Brett Hartshorn","email":"goatman.py@gmail.com"},"name":"python-js","description":"python multi-translator: javascript, dart, coffee, lua, vis.js","version":"0.8.9","license":"BSD-3-Clause","repository":{"type":"git","url":"git://github.com/PythonJS/PythonJS.git"},"keywords":["pythonjs","python"],"dependencies":{},"engines":{"node":"*"},"preferGlobal":true,"main":"./python-js","bin":{"python-js":"./cli.js"},"files":["lib","empythoned.js","python-js","pythonjs.js","pythonjs.py","python_to_pythonjs.py","ministdlib.py","pythonjs_to_dart.py","pythonjs_to_coffee.py","pythonjs_to_lua.py","python_to_visjs.py","cli.js","runtime"],"bugs":{"url":"https://github.com/PythonJS/PythonJS/issues"},"homepage":"https://github.com/PythonJS/PythonJS","_id":"python-js@0.8.9","dist":{"shasum":"74d41833486cc6c281e6e7f1b38c3f95848bb8d2","tarball":"https://registry.npmjs.org/python-js/-/python-js-0.8.9.tgz","integrity":"sha512-R7UdSwXusNqsHuHz9iz5iJHybpjjRP83cT0oGci3IFi8TeX63xNH9JJXSeVXrX+UtLEWWIpgqDbdUrB51bcjrQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCB3HWkLrQxeFDHuN6BZD/CKMUt24QX2l1O2IRvvorViwIhAN/E9+oIipwEpaT8rO/t/w5S8baF3HGnkIdstS1XToKz"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"hartsantler","email":"goatman.py@gmail.com"},"maintainers":[{"name":"hartsantler","email":"goatman.py@gmail.com"}]},"0.9.0":{"author":{"name":"Brett Hartshorn","email":"goatman.py@gmail.com"},"name":"python-js","description":"python multi-translator: javascript, dart, coffee, lua, vis.js","version":"0.9.0","license":"BSD-3-Clause","repository":{"type":"git","url":"git://github.com/PythonJS/PythonJS.git"},"keywords":["pythonjs","python"],"dependencies":{},"engines":{"node":"*"},"preferGlobal":true,"main":"./python-js","bin":{"python-js":"./cli.js"},"files":["lib","empythoned.js","python-js","pythonjs.js","pythonjs.py","python_to_pythonjs.py","ministdlib.py","pythonjs_to_dart.py","pythonjs_to_coffee.py","pythonjs_to_lua.py","python_to_visjs.py","cli.js","runtime"],"bugs":{"url":"https://github.com/PythonJS/PythonJS/issues"},"homepage":"https://github.com/PythonJS/PythonJS","_id":"python-js@0.9.0","dist":{"shasum":"4902f9b97a2b2d6d38b52deef235ff2f170b729b","tarball":"https://registry.npmjs.org/python-js/-/python-js-0.9.0.tgz","integrity":"sha512-743/TPdue6Q1P3Hw0Pw9lWyKUmMkKsDujKbrQc1/yOBrfHEbkN2TAoYOqMhduqMdysMG/FfkNizv8qhbJhF4+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtGFbFrwFmY2IpE7/tz08UnShcAhzGtzyL58xFjRsoCQIhANqLVjxFLVXIjP3LGaJySOyyWZYKYtvuaL4Lgk7Tsflx"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"hartsantler","email":"goatman.py@gmail.com"},"maintainers":[{"name":"hartsantler","email":"goatman.py@gmail.com"}]},"0.9.1":{"author":{"name":"Brett Hartshorn","email":"goatman.py@gmail.com"},"name":"python-js","description":"python multi-translator: javascript, dart, coffee, lua, vis.js","version":"0.9.1","license":"BSD-3-Clause","repository":{"type":"git","url":"git://github.com/PythonJS/PythonJS.git"},"keywords":["pythonjs","python"],"dependencies":{},"engines":{"node":"*"},"preferGlobal":true,"main":"./python-js","bin":{"python-js":"./cli.js"},"files":["lib","empythoned.js","python-js","pythonjs.js","pythonjs.py","python_to_pythonjs.py","ministdlib.py","pythonjs_to_dart.py","pythonjs_to_coffee.py","pythonjs_to_lua.py","python_to_visjs.py","cli.js","runtime"],"bugs":{"url":"https://github.com/PythonJS/PythonJS/issues"},"homepage":"https://github.com/PythonJS/PythonJS","_id":"python-js@0.9.1","dist":{"shasum":"5055601c8a7b770e51bfe24315ae9d5ffa30d342","tarball":"https://registry.npmjs.org/python-js/-/python-js-0.9.1.tgz","integrity":"sha512-huX1UhQfW08sv+YUqOBn3/Q48rtShmtTUqquLkTdS2N2tkmw6c0e2xbKbuZietPafBT+ilQUu4FdPjcnuBuVVQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBcm3ggYLg4zE3ePffEKG26qCGjHEsz67WkkpuRINCErAiABAJYVYKnmKTGjYbWPTSWj5uqjpq3G66uc3pVwkxlmfg=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"hartsantler","email":"goatman.py@gmail.com"},"maintainers":[{"name":"hartsantler","email":"goatman.py@gmail.com"}]},"0.9.2":{"author":{"name":"Brett Hartshorn","email":"goatman.py@gmail.com"},"name":"python-js","description":"python multi-translator: javascript, dart, coffee, lua, vis.js","version":"0.9.2","license":"BSD-3-Clause","repository":{"type":"git","url":"git://github.com/PythonJS/PythonJS.git"},"keywords":["pythonjs","python"],"dependencies":{},"engines":{"node":"*"},"preferGlobal":true,"main":"./python-js","bin":{"python-js":"./cli.js"},"files":["lib","empythoned.js","python-js","pythonjs.js","pythonjs.py","python_to_pythonjs.py","ministdlib.py","pythonjs_to_dart.py","pythonjs_to_coffee.py","pythonjs_to_lua.py","python_to_visjs.py","cli.js","runtime"],"bugs":{"url":"https://github.com/PythonJS/PythonJS/issues"},"homepage":"https://github.com/PythonJS/PythonJS","_id":"python-js@0.9.2","dist":{"shasum":"105106ba5a8ba3869d35c19f57892c0ee76003f2","tarball":"https://registry.npmjs.org/python-js/-/python-js-0.9.2.tgz","integrity":"sha512-9AcRxhk+MRi2phBj3QgWFhKufiZZPGb6o3eDPwIrLFN7WCfFVSXQ9UNlk+nE38jI1DDE3Abkd9K1jusnsU+jbg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIApXRKY09q/fI8kLMXAb8doo8UQjPrGSu1zGhJ2O4rUxAiEAlyXGmMcpJcslwS9y8KTal9aGgEZPfM0Cd6p/qtKU3Q8="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"hartsantler","email":"goatman.py@gmail.com"},"maintainers":[{"name":"hartsantler","email":"goatman.py@gmail.com"}]},"0.9.3":{"author":{"name":"Brett Hartshorn","email":"goatman.py@gmail.com"},"name":"python-js","description":"python multi-translator: javascript, dart, coffee, lua, vis.js","version":"0.9.3","license":"BSD-3-Clause","repository":{"type":"git","url":"git://github.com/PythonJS/PythonJS.git"},"keywords":["pythonjs","python"],"dependencies":{},"engines":{"node":"*"},"preferGlobal":true,"main":"./python-js","bin":{"python-js":"./cli.js"},"files":["lib","empythoned.js","python-js","pythonjs.js","pythonjs.py","python_to_pythonjs.py","ministdlib.py","pythonjs_to_dart.py","pythonjs_to_coffee.py","pythonjs_to_lua.py","python_to_visjs.py","code_writer.py","inline_function.py","cli.js","runtime"],"bugs":{"url":"https://github.com/PythonJS/PythonJS/issues"},"homepage":"https://github.com/PythonJS/PythonJS","_id":"python-js@0.9.3","dist":{"shasum":"b4eabbe5f1ba769ac2624f8925b0ac07a964d4c7","tarball":"https://registry.npmjs.org/python-js/-/python-js-0.9.3.tgz","integrity":"sha512-rPKrk7GWtqC30AsYStUkx5GAa9LNk07xSqYrQGuX0pK6rfOLVkL1+99rVpA5oQ5/F+UzaHME97NrfplFbaioMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHIOW3cEBQ/rOOVYXA3zeBkPW9FIWomzMgM8TR13CkJyAiAMrdh6b46boStWZ+u4OqkUtd5DA5T3rkETymisxATw3g=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"hartsantler","email":"goatman.py@gmail.com"},"maintainers":[{"name":"hartsantler","email":"goatman.py@gmail.com"}]},"0.9.4":{"author":{"name":"Brett Hartshorn","email":"goatman.py@gmail.com"},"name":"python-js","description":"python multi-translator: javascript, dart, coffee, lua, vis.js","version":"0.9.4","license":"BSD-3-Clause","repository":{"type":"git","url":"git://github.com/PythonJS/PythonJS.git"},"keywords":["pythonjs","python","dart","lua","transpiler"],"dependencies":{"workerjs":"*","requirejs":"*"},"engines":{"node":"*"},"preferGlobal":true,"main":"./python-js","bin":{"python-js":"./cli.js"},"files":["lib","fakelibs","empythoned.js","python-js","pythonjs.js","pythonjs.py","python_to_pythonjs.py","ministdlib.py","pythonjs_to_dart.py","pythonjs_to_coffee.py","pythonjs_to_lua.py","python_to_visjs.py","code_writer.py","inline_function.py","ast_utils.py","cli.js","runtime"],"bugs":{"url":"https://github.com/PythonJS/PythonJS/issues"},"homepage":"https://github.com/PythonJS/PythonJS","_id":"python-js@0.9.4","dist":{"shasum":"ab4e3222e0cd8b9d7a0c929922b3ec7ddfe985d3","tarball":"https://registry.npmjs.org/python-js/-/python-js-0.9.4.tgz","integrity":"sha512-GCuFBxppecwYFjkvQedptg1THGTjRlUDdeVLeGFD5RhDvVlVvF70BEBOhZvtdz0X+xzAIoGSQRWeId+rcTZ/YA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFRKuajv54UD4wVzE24PKIR7QesJJQB5rwn1nC+mRl6wAiAI3NydmS+xU0RmUouGIgltPacgsWmC3OJ1x3wdqVueNQ=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"hartsantler","email":"goatman.py@gmail.com"},"maintainers":[{"name":"hartsantler","email":"goatman.py@gmail.com"}]},"0.9.5":{"author":{"name":"Brett Hartshorn","email":"goatman.py@gmail.com"},"name":"python-js","description":"python multi-translator: javascript, dart, coffee, lua, vis.js","version":"0.9.5","license":"BSD-3-Clause","repository":{"type":"git","url":"git://github.com/PythonJS/PythonJS.git"},"keywords":["pythonjs","python","dart","lua","transpiler"],"dependencies":{"workerjs":"*","requirejs":"*"},"engines":{"node":"*"},"preferGlobal":true,"main":"./python-js","bin":{"python-js":"./cli.js"},"files":["lib","fakelibs","empythoned.js","python-js","pythonjs.js","pythonjs.py","python_to_pythonjs.py","ministdlib.py","pythonjs_to_dart.py","pythonjs_to_coffee.py","pythonjs_to_lua.py","python_to_visjs.py","code_writer.py","inline_function.py","ast_utils.py","cli.js","runtime"],"bugs":{"url":"https://github.com/PythonJS/PythonJS/issues"},"homepage":"https://github.com/PythonJS/PythonJS","_id":"python-js@0.9.5","dist":{"shasum":"178601d5c3145ed31fbd22044df6b4759a400e0a","tarball":"https://registry.npmjs.org/python-js/-/python-js-0.9.5.tgz","integrity":"sha512-LrPdB6Dd5cGAWSBYJPv6VAAlUdyGa9sjCLgksKtS+dzdsRZJ7+7eFxAUycQiA6LzLZJ6a0aIDtymAT85dZ0N0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3CUh55ssAX9YfIxJUrTK9ZLtXrNwQa5rjHWqYElbzeQIhAMojZBWL2UImYDkCbZOf9Uv7gvEi/jwObDvgJfAeJCkE"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"hartsantler","email":"goatman.py@gmail.com"},"maintainers":[{"name":"hartsantler","email":"goatman.py@gmail.com"}]},"0.9.6":{"author":{"name":"Brett Hartshorn","email":"goatman.py@gmail.com"},"name":"python-js","description":"python multi-translator: javascript, dart, coffee, lua, vis.js","version":"0.9.6","license":"BSD-3-Clause","repository":{"type":"git","url":"git://github.com/PythonJS/PythonJS.git"},"keywords":["pythonjs","python","dart","lua","transpiler"],"dependencies":{"workerjs":"*","requirejs":"*"},"engines":{"node":"*"},"preferGlobal":true,"main":"./python-js","bin":{"python-js":"./cli.js"},"files":["lib","fakelibs","empythoned.js","python-js","pythonjs.js","pythonjs.py","python_to_pythonjs.py","ministdlib.py","pythonjs_to_dart.py","pythonjs_to_coffee.py","pythonjs_to_lua.py","python_to_visjs.py","code_writer.py","inline_function.py","ast_utils.py","cli.js","runtime"],"bugs":{"url":"https://github.com/PythonJS/PythonJS/issues"},"homepage":"https://github.com/PythonJS/PythonJS","_id":"python-js@0.9.6","dist":{"shasum":"121571da5304dcb4c469ad7289154dab167cf976","tarball":"https://registry.npmjs.org/python-js/-/python-js-0.9.6.tgz","integrity":"sha512-CLxg5w1CqhBP8XTCP9mDrOdjmT350mOTe/8dPI4crQ9JFGvWOeGUeFvyzsXrGIHaAlcsHja12dM2FKJdR4Q0vQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDv6JTJcyB2WTOM6rP+SkWeafvsSNayepAcxzwz40kDGgIhAJ2RmrQZcXh1Hv94AQor9/8TdDyI4MSGR4kNY/F6EgYD"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"hartsantler","email":"goatman.py@gmail.com"},"maintainers":[{"name":"hartsantler","email":"goatman.py@gmail.com"}]},"0.9.7":{"author":{"name":"Brett Hartshorn","email":"goatman.py@gmail.com"},"name":"python-js","description":"python multi-translator: javascript, dart, coffee, lua, vis.js","version":"0.9.7","license":"BSD-3-Clause","repository":{"type":"git","url":"git://github.com/PythonJS/PythonJS.git"},"keywords":["pythonjs","python","dart","lua","transpiler"],"dependencies":{"workerjs":"*","requirejs":"*","long":"*"},"engines":{"node":"*"},"preferGlobal":true,"main":"./python-js","bin":{"python-js":"./cli.js"},"files":["lib","fakelibs","empythoned.js","python-js","pythonjs.js","pythonjs.py","python_to_pythonjs.py","ministdlib.py","pythonjs_to_dart.py","pythonjs_to_coffee.py","pythonjs_to_lua.py","python_to_visjs.py","code_writer.py","inline_function.py","ast_utils.py","typedpython.py","cli.js","runtime"],"bugs":{"url":"https://github.com/PythonJS/PythonJS/issues"},"homepage":"https://github.com/PythonJS/PythonJS","_id":"python-js@0.9.7","dist":{"shasum":"5edca254abf599bc1ec1b66ef830d1685ab66915","tarball":"https://registry.npmjs.org/python-js/-/python-js-0.9.7.tgz","integrity":"sha512-TNSGg1JHIFgFDOb8zETf02PTMW8lRtr8lJrya74w51uTlfJAqy2PR4kluFcRrMgLAH6YF5OvYsmlrQ13SUW4iw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFyH6Zn+Jq4slYKw3S4vwQvJasL7X5R7QZuKm7sfGTU6AiEAxt9DIulXEBoYKazngwwGQEs13kilTthe5HyA9Gj5TlA="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"hartsantler","email":"goatman.py@gmail.com"},"maintainers":[{"name":"hartsantler","email":"goatman.py@gmail.com"}]},"0.9.8":{"author":{"name":"Brett Hartshorn","email":"goatman.py@gmail.com"},"name":"python-js","description":"python multi-translator: javascript, dart, coffee, lua, vis.js","version":"0.9.8","license":"BSD-3-Clause","repository":{"type":"git","url":"git://github.com/PythonJS/PythonJS.git"},"keywords":["pythonjs","python","dart","lua","transpiler"],"dependencies":{"workerjs":"*","requirejs":"*","long":"*"},"engines":{"node":"*"},"preferGlobal":true,"main":"./python-js","bin":{"python-js":"./cli.js"},"files":["lib","fakelibs","empythoned.js","python-js","pythonjs.js","pythonjs.py","python_to_pythonjs.py","ministdlib.py","pythonjs_to_dart.py","pythonjs_to_coffee.py","pythonjs_to_lua.py","python_to_visjs.py","code_writer.py","inline_function.py","ast_utils.py","typedpython.py","cli.js","runtime"],"bugs":{"url":"https://github.com/PythonJS/PythonJS/issues"},"homepage":"https://github.com/PythonJS/PythonJS","_id":"python-js@0.9.8","dist":{"shasum":"964486d9c9090ecbb13875b0852eee10c27b2b8e","tarball":"https://registry.npmjs.org/python-js/-/python-js-0.9.8.tgz","integrity":"sha512-HET26XZKIkWLoMZYt7eC2woLv0rhgW+igO/T+xjMz5fbT5SIQu868+x4hdScsbKfg7efs9vsA6htdMXuvijgDQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGrOGuoAZ8Ng+cty2J+GbmDvTk5DzsHkjiHdJFeKGgSwAiEAn57yiNHDZ5ZjEm8KKfDJHGAVrJbGYohABc9aLCmCZa4="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"hartsantler","email":"goatman.py@gmail.com"},"maintainers":[{"name":"hartsantler","email":"goatman.py@gmail.com"}]}},"readme":"PythonJS\n======\n\nPythonJS is a multi-language Python translator.  The translator is written in Python and runs inside NodeJS using a hacked and stripped down version of Empythoned.  Empythoned is the standard C-Python interpreter compiled to JavaScript using Emscripten.\n\nPythonJS can be used from the command line or as a library within your own NodeJS program.  By default the translator will output JavaScript.  You can also use the experimental backends for: Dart, Coffee, Lua and Vis.js.  The Vis.js backend turns your code into a graph so you can inspect it visually in a web-browser using the vis.js library.\n\n####Command Line\n\n\tpython-js INPUT OUTPUT [--dart, --coffee, --lua, --visjs]\n\n\n####NodeJS Module\n\n\tvar pythonjs = require('python-js');\n\n\tvar code = pythonjs.translator.to_javascript( my_python_code ) // output javascript\n\teval( code )  // runs the javascript output server side within nodejs\n\n\t// experimental backends\n\tvar code = pythonjs.translator.to_dart( my_python_code )       // output dart\n\tvar code = pythonjs.translator.to_coffee( my_python_code )     // output coffeescript\n\tvar code = pythonjs.translator.to_lua( my_python_code )        // output lua\n\tvar code = pythonjs.translator.to_visjs( my_python_code )      // output a graph for vis.js\n\n\t// the runtime required on the client side by the javascript and coffee backends\n\tvar header = pythonjs.runtime.javascript\n\nThe PythonJS module exports an object named `translator` that contains functions to translate your python code using one of the backends.\n\nWhen translating code for the Dart or Lua backends the required runtime header is inserted at the top of the output.  Note that for the Javascript and Coffee backends, the runtime header is not included in the output - so if code is going to be run on the client side in a web browser, then you will need to manually include `pythonjs.js` script in the HTML page.\n","maintainers":[{"name":"hartsantler","email":"goatman.py@gmail.com"}],"time":{"modified":"2022-06-25T03:09:22.670Z","created":"2014-05-01T07:32:16.180Z","0.8.9":"2014-05-01T07:33:30.881Z","0.9.0":"2014-05-02T02:03:09.551Z","0.9.1":"2014-05-08T07:18:24.169Z","0.9.2":"2014-05-13T06:15:02.385Z","0.9.3":"2014-05-20T04:35:39.069Z","0.9.4":"2014-06-03T10:35:56.129Z","0.9.5":"2014-06-03T14:59:18.699Z","0.9.6":"2014-06-05T03:04:01.972Z","0.9.7":"2014-07-15T06:50:40.494Z","0.9.8":"2014-07-17T02:29:37.534Z"},"readmeFilename":"README.md","homepage":"https://github.com/PythonJS/PythonJS","keywords":["pythonjs","python","dart","lua","transpiler"],"repository":{"type":"git","url":"git://github.com/PythonJS/PythonJS.git"},"author":{"name":"Brett Hartshorn","email":"goatman.py@gmail.com"},"bugs":{"url":"https://github.com/PythonJS/PythonJS/issues"},"license":"BSD-3-Clause","users":{"kennyjoseph":true}}