aboutsummaryrefslogtreecommitdiff
path: root/node_modules/istanbul-reports/index.js
blob: d442c58b593d71c57363a20f060ff29eafc7b5c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 Copyright 2012-2015, Yahoo Inc.
 Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
 */
var path = require('path');

module.exports = {
    create: function (name, cfg) {
        cfg = cfg || {};
        var Cons = require(path.join(__dirname, 'lib', name));
        return new Cons(cfg);
    }
};