There's some rough documentation at https://github.com/espruino/Espruino/blob/master/scripts/common.py#L61 and https://github.com/espruino/Espruino/blob/master/README_BuildProcess.md#wrapper-files-
Basically if you write an extension they are functions that hook into Espruino itself.
init
kill
idle
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
There's some rough documentation at https://github.com/espruino/Espruino/blob/master/scripts/common.py#L61 and https://github.com/espruino/Espruino/blob/master/README_BuildProcess.md#wrapper-files-
Basically if you write an extension they are functions that hook into Espruino itself.
init
runs when the JS environment starts (eg. power on, reset, load)kill
is when is shuts downidle
is basically once every time around the event loop