All Projects → projectwallace → Css Analyzer

projectwallace / Css Analyzer

Licence: mit
Analytics for CSS

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Css Analyzer

Wallace Cli
Pretty CSS analytics on the CLI
Stars: ✭ 281 (+92.47%)
Mutual labels:  statistics, stats, audit
Git Quick Stats
▁▅▆▃▅ Git quick statistics is a simple and efficient way to access various statistics in git repository.
Stars: ✭ 5,139 (+3419.86%)
Mutual labels:  statistics, stats
Tautulli
A Python based monitoring and tracking tool for Plex Media Server.
Stars: ✭ 4,152 (+2743.84%)
Mutual labels:  statistics, stats
Github Traffic
Get the Github traffic for the specified repository
Stars: ✭ 77 (-47.26%)
Mutual labels:  statistics, stats
Phishing.database
Phishing Domains, urls websites and threats database. We use the PyFunceble testing tool to validate the status of all known Phishing domains and provide stats to reveal how many unique domains used for Phishing are still active.
Stars: ✭ 296 (+102.74%)
Mutual labels:  statistics, stats
Appstat
Get AppStore apps stats
Stars: ✭ 322 (+120.55%)
Mutual labels:  statistics, stats
Ruby Statistics
Ruby gem for some statistical operations without any statistical language dependency
Stars: ✭ 67 (-54.11%)
Mutual labels:  statistics, stats
stats
📊 Request statistics middleware that stores response times, status code counts, etc
Stars: ✭ 15 (-89.73%)
Mutual labels:  statistics, stats
Memcache Info
Simple and efficient way to show information about Memcache.
Stars: ✭ 84 (-42.47%)
Mutual labels:  statistics, stats
Gameday api
A Ruby API for using the Major League Baseball Gameday statistics data. MLB provides very deep statistics for all major league baseball games through Gameday. Statistics include not only the typical boxscore stats, but also down to the physics of every single pitch thrown in the game. You can find the speed, movement, and position of every pitch thrown. The Gameday API makes it easy for Ruby developers to work with all this statistical information. The test directory included with the source code contains many examples of how the API can be used. If you prefer to use SVN, the gameday_api is also available via an SVN repository at: http://code.google.com/p/gamedayapi/ If you like this project, be sure to also check out the Baseball-Tracker project also hosted on GitHub. Baseball-Tracker is a web application that uses the gameday_api. You can find a hosted version of Baseball Tracker at http://baseballstatz.heroku.com
Stars: ✭ 137 (-6.16%)
Mutual labels:  statistics, stats
Pypistats
Command-line interface to PyPI Stats API to get download stats for Python packages
Stars: ✭ 86 (-41.1%)
Mutual labels:  statistics, stats
Stats
A C++ header-only library of statistical distribution functions.
Stars: ✭ 292 (+100%)
Mutual labels:  statistics, stats
Npm Stats
📈 npm package statistics dashboard build with vue
Stars: ✭ 106 (-27.4%)
Mutual labels:  statistics, stats
Csinva.github.io
Slides, paper notes, class notes, blog posts, and research on ML 📉, statistics 📊, and AI 🤖.
Stars: ✭ 342 (+134.25%)
Mutual labels:  statistics, stats
Github Stats For Turkey
Github language, repo and developer stats for Turkey.
Stars: ✭ 259 (+77.4%)
Mutual labels:  statistics, stats
Gramm
Gramm is a complete data visualization toolbox for Matlab. It provides an easy to use and high-level interface to produce publication-quality plots of complex data with varied statistical visualizations. Gramm is inspired by R's ggplot2 library.
Stars: ✭ 541 (+270.55%)
Mutual labels:  statistics, stats
math-stats
A small library that does the statistics for your numbers.
Stars: ✭ 18 (-87.67%)
Mutual labels:  statistics, stats
mongodb-info
MongoDB Info - command line tool to get stats.
Stars: ✭ 13 (-91.1%)
Mutual labels:  statistics, stats
Superseriousstats
superseriousstats is a fast and efficient program to create statistics out of various types of chat logs
Stars: ✭ 78 (-46.58%)
Mutual labels:  statistics, stats
Devstats
📊 A CLI application that fetches stats from developer sites
Stars: ✭ 105 (-28.08%)
Mutual labels:  statistics, stats

css-analyzer

NPM Version Node.js CI Coverage Status Dependencies Status Dependencies Status

Analyze your CSS

A module that goes through your CSS to find all kinds of relevant statistics, like the amount of rules, the amount of !importants, unique colors, and so on.

Install

npm install @projectwallace/css-analyzer

or

yarn add @projectwallace/css-analyzer

Usage

const analyze = require('@projectwallace/css-analyzer');

analyze(`
	p {
		color: blue;
		font-size: 100%;
	}

	.component[data-state="loading"] {
		background-color: whitesmoke;
	}
`)
  .then(result => console.log(result))
  .catch(error => console.error(error))
}
{
  "stylesheets.size.uncompressed.totalBytes": 115,
  "stylesheets.size.compressed.gzip.totalBytes": 121,
  "stylesheets.size.compressed.gzip.compressionRatio": -0.05217391304347818,
  "stylesheets.simplicity": 1,
  "stylesheets.cohesion.average": 1.5,
  "stylesheets.cohesion.min.count": 2,
  "stylesheets.cohesion.min.value.declarations": [
    {
      "property": "color",
      "value": "blue",
      "important": false
    },
    {
      "property": "font-size",
      "value": "100%",
      "important": false
    }
  ],
  "stylesheets.cohesion.min.value.selectors": [
    "p"
  ],
  "stylesheets.browserhacks.total": 0,
  "stylesheets.browserhacks.totalUnique": 0,
  "stylesheets.linesOfCode.total": 10,
  "stylesheets.linesOfCode.sourceLinesOfCode.total": 5,
  "atrules.charsets.total": 0,
  "atrules.charsets.unique": [],
  "atrules.charsets.totalUnique": 0,
  "atrules.documents.total": 0,
  "atrules.documents.unique": [],
  "atrules.documents.totalUnique": 0,
  "atrules.fontfaces.total": 0,
  "atrules.fontfaces.unique": [],
  "atrules.fontfaces.totalUnique": 0,
  "atrules.imports.total": 0,
  "atrules.imports.unique": [],
  "atrules.imports.totalUnique": 0,
  "atrules.keyframes.total": 0,
  "atrules.keyframes.unique": [],
  "atrules.keyframes.totalUnique": 0,
  "atrules.keyframes.prefixed.total": 0,
  "atrules.keyframes.prefixed.unique": [],
  "atrules.keyframes.prefixed.totalUnique": 0,
  "atrules.keyframes.prefixed.share": 0,
  "atrules.mediaqueries.total": 0,
  "atrules.mediaqueries.unique": [],
  "atrules.mediaqueries.totalUnique": 0,
  "atrules.mediaqueries.browserhacks.total": 0,
  "atrules.mediaqueries.browserhacks.unique": [],
  "atrules.mediaqueries.browserhacks.totalUnique": 0,
  "atrules.namespaces.total": 0,
  "atrules.namespaces.unique": [],
  "atrules.namespaces.totalUnique": 0,
  "atrules.pages.total": 0,
  "atrules.pages.unique": [],
  "atrules.pages.totalUnique": 0,
  "atrules.supports.total": 0,
  "atrules.supports.unique": [],
  "atrules.supports.totalUnique": 0,
  "atrules.supports.browserhacks.total": 0,
  "atrules.supports.browserhacks.unique": [],
  "atrules.supports.browserhacks.totalUnique": 0,
  "rules.total": 2,
  "rules.empty.total": 0,
  "rules.selectors.average": 1,
  "rules.selectors.minimum.count": 1,
  "rules.selectors.minimum.value": [
    ".component[data-state=\"loading\"]"
  ],
  "rules.selectors.maximum.count": 1,
  "rules.selectors.maximum.value": [
    "p"
  ],
  "selectors.total": 2,
  "selectors.totalUnique": 2,
  "selectors.js.total": 0,
  "selectors.js.unique": [],
  "selectors.js.totalUnique": 0,
  "selectors.id.total": 0,
  "selectors.id.unique": [],
  "selectors.id.totalUnique": 0,
  "selectors.universal.total": 0,
  "selectors.universal.unique": [],
  "selectors.universal.totalUnique": 0,
  "selectors.accessibility.total": 0,
  "selectors.accessibility.unique": [],
  "selectors.accessibility.totalUnique": 0,
  "selectors.specificity.top": [
    {
      "count": 1,
      "value": ".component[data-state=\"loading\"]",
      "specificity": {
        "a": 0,
        "b": 0,
        "c": 2,
        "d": 0
      }
    },
    {
      "count": 1,
      "value": "p",
      "specificity": {
        "a": 0,
        "b": 0,
        "c": 0,
        "d": 1
      }
    }
  ],
  "selectors.specificity.max.value.a": 0,
  "selectors.specificity.max.value.b": 0,
  "selectors.specificity.max.value.c": 2,
  "selectors.specificity.max.value.d": 0,
  "selectors.specificity.max.count": 1,
  "selectors.specificity.max.selectors": [
    {
      "count": 1,
      "value": ".component[data-state=\"loading\"]",
      "specificity": {
        "a": 0,
        "b": 0,
        "c": 2,
        "d": 0
      }
    }
  ],
  "selectors.complexity.max.value": 3,
  "selectors.complexity.max.selectors": [
    {
      "value": ".component[data-state=\"loading\"]",
      "count": 1
    }
  ],
  "selectors.complexity.max.count": 1,
  "selectors.complexity.average": 2,
  "selectors.complexity.sum": 4,
  "selectors.complexity.unique": [
    {
      "value": 1,
      "count": 1
    },
    {
      "value": 3,
      "count": 1
    }
  ],
  "selectors.complexity.totalUnique": 2,
  "selectors.browserhacks.total": 0,
  "selectors.browserhacks.unique": [],
  "selectors.browserhacks.totalUnique": 0,
  "declarations.total": 3,
  "declarations.totalUnique": 3,
  "declarations.importants.total": 0,
  "declarations.importants.share": 0,
  "properties.total": 3,
  "properties.unique": [
    {
      "value": "background-color",
      "count": 1
    },
    {
      "value": "color",
      "count": 1
    },
    {
      "value": "font-size",
      "count": 1
    }
  ],
  "properties.totalUnique": 3,
  "properties.prefixed.total": 0,
  "properties.prefixed.unique": [],
  "properties.prefixed.totalUnique": 0,
  "properties.prefixed.share": 0,
  "properties.browserhacks.total": 0,
  "properties.browserhacks.unique": [],
  "properties.browserhacks.totalUnique": 0,
  "values.total": 3,
  "values.prefixed.total": 0,
  "values.prefixed.unique": [],
  "values.prefixed.totalUnique": 0,
  "values.prefixed.share": 0,
  "values.fontsizes.total": 1,
  "values.fontsizes.unique": [
    {
      "value": "100%",
      "count": 1
    }
  ],
  "values.fontsizes.totalUnique": 1,
  "values.fontfamilies.total": 0,
  "values.fontfamilies.unique": [],
  "values.fontfamilies.totalUnique": 0,
  "values.colors.total": 2,
  "values.colors.unique": [
    {
      "value": "blue",
      "count": 1
    },
    {
      "value": "whitesmoke",
      "count": 1
    }
  ],
  "values.colors.totalUnique": 2,
  "values.colors.duplicates.unique": [],
  "values.colors.duplicates.totalUnique": 0,
  "values.colors.duplicates.total": 0,
  "values.browserhacks.total": 0,
  "values.browserhacks.unique": [],
  "values.browserhacks.totalUnique": 0,
  "values.boxshadows.total": 0,
  "values.boxshadows.unique": [],
  "values.boxshadows.totalUnique": 0,
  "values.textshadows.total": 0,
  "values.textshadows.unique": [],
  "values.textshadows.totalUnique": 0,
  "values.zindexes.total": 0,
  "values.zindexes.unique": [],
  "values.zindexes.totalUnique": 0,
  "values.animations.durations.total": 0,
  "values.animations.durations.unique": [],
  "values.animations.durations.totalUnique": 0,
  "values.animations.timingFunctions.total": 0,
  "values.animations.timingFunctions.unique": [],
  "values.animations.timingFunctions.totalUnique": 0
}

Related projects

  • Wallace CLI - CLI tool for @projectwallace/css-analyzer
  • Constyble - CSS Complexity linter
  • Color Sorter - Sort CSS colors by hue, saturation, lightness and opacity
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].