wallet-core/node_modules/istanbul-reports/index.js

20 lines
349 B
JavaScript
Raw Normal View History

2017-05-28 00:38:50 +02:00
/*
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);
}
};