Well, there's already a wlan object that pretty much covers it: http://www.espruino.com/Reference#WLAN
Maybe if you add a WLAN.E (or something else, doesn't have to be E) object for anything ESP8266 specific?
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.
Well, there's already a wlan object that pretty much covers it: http://www.espruino.com/Reference#WLAN
Maybe if you add a WLAN.E (or something else, doesn't have to be E) object for anything ESP8266 specific?