index.js
function parse(text, visibleTextOnly) {
    var parser = new Parser();
    var email = parser.parse(text);

    if (visibleTextOnly) {
        if (!email) return '';
        else return email.getVisibleText();
    } else return email;
}
function parse(text, visibleTextOnly) {
    var parser = new Parser();
    var email = parser.parse(text);

    if (visibleTextOnly) {
        if (!email) return '';
        else return email.getVisibleText();
    } else return email;
}
function parse ( text , visibleTextOnly ) { var parser = new Parser ( ) ; var email = parser . parse ( text ) ; if ( visibleTextOnly ) { if ( ! email ) return '' ; else return email . getVisibleText ( ) ; } else return email ; }
Parses the given text into an email
@param {string} text the email text to parse
@param {boolean} [visibleTextOnly] if true, the visible text will be returned instead of an Email
@returns {Email|string} the parsed Email or visible text, depending on the second argument
Parses the given text into an email