• 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'.

About

Avatar for gadicc @gadicc started