packages/browser-sync/lib/index.js
function getSingle(name) {
    if (instances.length) {
        var match = instances.filter(function(item) {
            return item.name === name;
        });
        if (match.length) {
            return match[0];
        }
    }
    return false;
}
function getSingle(name) {
    if (instances.length) {
        var match = instances.filter(function(item) {
            return item.name === name;
        });
        if (match.length) {
            return match[0];
        }
    }
    return false;
}
function getSingle ( name ) { if ( instances . length ) { var match = instances . filter ( function ( item ) { return item . name === name ; } ) ; if ( match . length ) { return match [ 0 ] ; } } return false ; }
Get a single instance by name
@param {String} name
@returns {Object|Boolean}
Get a single instance by name