bin/formatter.js
function loadFormatters(){
    var arrFiles = glob.sync('./formatters/*.js', {
        'cwd': __dirname,
        'dot': false,
        'nodir': true,
        'strict': false,
        'silent': true
    });
    var mapFormatters = {};
    arrFiles.forEach(function(file){
        var fileInfo = path.parse(file);
        var formatterPath = path.resolve(__dirname, file);
        mapFormatters[fileInfo.name] = require(formatterPath);
    });
    return mapFormatters;
}
function loadFormatters(){
    var arrFiles = glob.sync('./formatters/*.js', {
        'cwd': __dirname,
        'dot': false,
        'nodir': true,
        'strict': false,
        'silent': true
    });
    var mapFormatters = {};
    arrFiles.forEach(function(file){
        var fileInfo = path.parse(file);
        var formatterPath = path.resolve(__dirname, file);
        mapFormatters[fileInfo.name] = require(formatterPath);
    });
    return mapFormatters;
}
function loadFormatters ( ) { var arrFiles = glob . sync ( './formatters/*.js' , { 'cwd' : __dirname , 'dot' : false , 'nodir' : true , 'strict' : false , 'silent' : true } ) ; var mapFormatters = { } ; arrFiles . forEach ( function ( file ) { var fileInfo = path . parse ( file ) ; var formatterPath = path . resolve ( __dirname , file ) ; mapFormatters [ fileInfo . name ] = require ( formatterPath ) ; } ) ; return mapFormatters ; }
load all formatters
load all formatters