index.js
function createPiGlow(callback) {
    var myPiGlow = new PiGlowBackend();
    var myInterface = piGlowInterface(myPiGlow);

    myPiGlow
        .on('initialize', function() {
            callback(null, myInterface);
        })
        .on('error', function(error) {
            callback(error, null);
        });
}
function createPiGlow(callback) {
    var myPiGlow = new PiGlowBackend();
    var myInterface = piGlowInterface(myPiGlow);

    myPiGlow
        .on('initialize', function() {
            callback(null, myInterface);
        })
        .on('error', function(error) {
            callback(error, null);
        });
}
function createPiGlow ( callback ) { var myPiGlow = new PiGlowBackend ( ) ; var myInterface = piGlowInterface ( myPiGlow ) ; myPiGlow . on ( 'initialize' , function ( ) { callback ( null , myInterface ) ; } ) . on ( 'error' , function ( error ) { callback ( error , null ) ; } ) ; }
convenience constructor function
convenience constructor function