lib/formatter/formatter.js
function transformHashData(stream, item) {
    var vals = [], row = [], headers = stream.headers, i = -1, headersLength = stream.headersLength;
    if (stream.totalCount++) {
        row.push(stream.rowDelimiter);
    }
    while (++i < headersLength) {
        vals[i] = item[headers[i]];
    }
    row.push(stream.formatter(vals));
    return row.join("");
}
function transformHashData(stream, item) {
    var vals = [], row = [], headers = stream.headers, i = -1, headersLength = stream.headersLength;
    if (stream.totalCount++) {
        row.push(stream.rowDelimiter);
    }
    while (++i < headersLength) {
        vals[i] = item[headers[i]];
    }
    row.push(stream.formatter(vals));
    return row.join("");
}
function transformHashData ( stream , item ) { var vals = [ ] , row = [ ] , headers = stream . headers , i = - 1 , headersLength = stream . headersLength ; if ( stream . totalCount ++ ) { row . push ( stream . rowDelimiter ) ; } while ( ++ i < headersLength ) { vals [ i ] = item [ headers [ i ] ] ; } row . push ( stream . formatter ( vals ) ) ; return row . join ( "" ) ; }
transform an object into a CSV row
transform an object into a CSV row