UNPKG
cssstats
Version:
beta (2.0.0-beta.4)
latest (4.0.5)
4.0.5
4.0.2
4.0.1
4.0.0
3.5.0
3.4.1
3.4.0
3.3.1
3.3.0
3.2.0
3.1.0
3.0.0
3.0.0-beta.2
3.0.0-beta.1
2.2.0
2.1.3
2.1.2
2.1.1
2.1.0
2.0.1
2.0.0
2.0.0-beta.4
2.0.0-beta.3
2.0.0-beta.2
2.0.0-beta.1
1.10.0
1.9.0
1.8.0
1.7.0
1.6.0
1.5.1
1.5.0
1.4.0
1.2.1
1.2.0
1.1.1
1.1.0
1.0.1
1.0.0
High-level stats for stylesheets
github.com/cssstats/cssstats
cssstats/cssstats
cssstats
/
lib
/
get-property-value-count.js
10 lines
(8 loc)
•
216 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
module.exports = function(property, value) {
if
(!
this
.properties || !
this
.properties[property]) {
return
0
}
return
this
.properties[property].filter(function(
val
) {
return
val
=== value }).length }