Yeah I also noticed that you can't export a single class. But the example would be:
var Date = require('date').connect; var d1 = new Date() var d2 = new Date()
:)
You could also call 'connect' something like '_constructor'.
@gadicc 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.
Yeah I also noticed that you can't export a single class. But the example would be:
var Date = require('date').connect;
var d1 = new Date()
var d2 = new Date()
:)
You could also call 'connect' something like '_constructor'.