.. _f-jshelper: module ``imghelper.js_helper`` ============================== .. inheritance-diagram:: pyquickhelper.imghelper.js_helper Short summary +++++++++++++ module ``pyquickhelper.imghelper.js_helper`` Helpers around images and :epkg:`javascript`. See also: * `pyduktape `_ * `Python Mini Racer `_ * `python-requirejs `_ :githublink:`%|py|10` Classes +++++++ +------------------------------------------------------------------------------+----------------------------------+ | class | truncated documentation | +==============================================================================+==================================+ | :class:`NodeJsException ` | Raised if :epkg:`node.js` fails. | +------------------------------------------------------------------------------+----------------------------------+ Functions +++++++++ +---------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ | function | truncated documentation | +=============================================================================================+=============================================================================================================================================+ | :func:`install_node_js_modules ` | Installs missing dependencies to compile a convert a :epkg:`javascript` libraries. | +---------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`nodejs_version ` | Returns :epkg:`node.js` version. | +---------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`require ` | Modified version of function *require* in `node_import.py `_. ... | +---------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`run_js_fct ` | Assuming *script* contains some :epkg:`javascript` which produces :epkg:`SVG`. This functions runs the code. | +---------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`run_js_with_nodejs ` | Runs a :epkg:`javascript` script with :epkg:`node.js`. | +---------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: pyquickhelper.imghelper.js_helper :members: :special-members: __init__ :show-inheritance: