jsx-control-statements
dukpy
Our great sponsors
jsx-control-statements | dukpy | |
---|---|---|
4 | 4 | |
1,583 | 413 | |
- | - | |
2.2 | 0.0 | |
5 months ago | 29 days ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
jsx-control-statements
-
Advice on JSX Conditionals
Thanks, this is really useful.
I’ve been using this Babel plug-in found it quite intuitive
dukpy
- YouTube-dl has a JavaScript interpreter written in 870 lines of Python
-
Python is in the browser. No idea if this will lead to chaos or harmony...
oh good, maybe we can now use python's javascript interpreter in browsers https://github.com/amol-/dukpy
-
Web Browser Engineering
I was interested to see that this uses the DukPy wrapper around Duktape for the JavaScript interpreter: https://browser.engineering/scripts.html
This made me start digging into whether this was considered a "safe" way of executing untrusted JavaScript in a sandbox.
its not completely clear to me if DukPy currently attempts safe evaluation - it's missing options for setting time or memory limits on executed code for example: https://github.com/amol-/dukpy
There's a QuickJS Python wrapper here which offers those limits: https://github.com/PetterS/quickjs
I'm pretty paranoid though any time it comes to security and dependencies written in C, so I'd love to see a Python wrapper around a JavaScript engine that has safe sandbox execution as a key goal plus an extensive track record to back it up!
What are some alternatives?
react-templates - Light weight templates for react
hyperx - 🏷 - tagged template string virtual dom builder
babel-plugin-macros - 🎣 Allows you to build simple compile-time libraries
quickjs - Thin Python wrapper of https://bellard.org/quickjs/
nwb - A toolkit for React, Preact, Inferno & vanilla JS apps, React libraries and other npm modules for the web, with no configuration (until you need it)
babel-plugin-transform-react-remove-prop-types - Remove unnecessary React propTypes from the production build. :balloon:
prettier - Prettier is an opinionated code formatter.
react-control-flow - Control flow components for React
PyMiniRacer - PyMiniRacer is a V8 bridge in Python.
pyodide - Pyodide is a Python distribution for the browser and Node.js based on WebAssembly
babel-plugin-transform-typescript-metadata - Babel plugin to emit decorator metadata like typescript compiler
babel-plugin-react-html-attrs - Babel plugin which transforms HTML and SVG attributes on JSX host elements into React-compatible attributes