MCPcopy
hub / github.com/csscomb/csscomb.js / CSScomb

Function CSScomb

src/csscomb.js:14–34  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

12 * @name CSScomb
13 */
14let CSScomb = function(config) {
15 let comb = new Comb();
16
17 // Add plugins.
18 fs.readdirSync(__dirname + '/options').map(function(option) {
19 return require('./options/' + option);
20 }).forEach(function(option) {
21 comb.use(option);
22 });
23
24 // If config was passed, configure:
25 if (typeof config === 'string') {
26 config = CSScomb.getConfig(config);
27 }
28 if (typeof config === 'object') {
29 comb.configure(config);
30 }
31
32 // Chaining.
33 return comb;
34};
35
36/**
37 * STATIC METHODS

Callers

nothing calls this directly

Calls 2

useMethod · 0.95
configureMethod · 0.95

Tested by

no test coverage detected