atjsparse#
Parsing and executing JavaScript code
atob(s)
#
Decodes base64 string
Parameters:
Name | Type | Description | Default |
---|---|---|---|
s |
str
|
Encoded data |
required |
Returns:
Type | Description |
---|---|
str
|
Decoded string |
exec_js(f)
#
Executes a JavaScript function
Parameters:
Name | Type | Description | Default |
---|---|---|---|
f |
str
|
ECMA6 function |
required |
Returns:
Type | Description |
---|---|
js2py.EvalJs
|
JavaScript interpreter context |
to_ecma5_function(f)
#
Converts a ECMA6 function to ECMA5 format (without arrow expressions)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
f |
str
|
ECMA6 function |
required |
Returns:
Type | Description |
---|---|
str
|
ECMA5 function |