Methods
auditSelectors(css) → {Object|number|number}static
#
Given CSS source, count both the total number of selectors it contains and the number which match some element in the current document.
Parameters:
Name | Type | Description |
---|---|---|
css |
string | CSS source |
- Source:
Returns:
Given CSS source, count both the total number of selectors it contains and the number which match some element in the current document.
dumpTable(data)static
#
Print tabular data to the console using console.table.
Parameters:
Name | Type | Description |
---|---|---|
data |
Array | Tabular data represented as an array of objects with common properties. |
- Source:
getDependencyGraph() → {Object}static
#
Return a map of all dependency relationships between loaded modules.
- Source:
Returns:
Maps module names to objects. Each sub-object has two properties, 'requires' and 'requiredBy'.
- Type
- Object
getLoadedModules() → {Array}static
#
getModuleSize(moduleName) → {number|null
}static
#
null
}static
#
grep(pattern) → {Array}static
#
Perform a string search across the JavaScript and CSS source code of all loaded modules and return an array of the names of the modules that matched.
Parameters:
- Source:
Returns:
Array of the names of modules that matched.
- Type
- Array
Perform a string search across the JavaScript and CSS source code of all loaded modules and return an array of the names of the modules that matched.