Skip to content

CLI that uses StyleStats or CSSCSS to parse a CSS file and give stats on it

Notifications You must be signed in to change notification settings

kanikarphan/css-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSS Stats

CSS Stats utilize Stylestats and CSSCSS to parse a css file and gives you stats on it.

Installing

npm install -g css-stats

Requirement

CSS Stats require Ruby (v1.9.x and up) installed. OSX should have Ruby preinstalled. For Windows you can use RubyInstaller. This is a Windows-based installer, the easiest way to get Ruby on Windows. To check if Ruby is installed on your machine use ruby -v.

Getting Started

For Windows start command prompt with Ruby and run the following command:

gem install csscss && css-stats setup

For OSX run the following command:

css-stats setup

Usage

Usage: css-stats [--stylestats|--csscss] [css]

Commands:

setup 
    install the necessary css parser engines

view [--json] [--port]
    visual view for css stats

prompt 
    css-stats prompt user interface


Options:

    -h, --help              output usage information
    -V, --version           output the version number
    -s, --stylestats [css]  parse css for overall stats
    -c, --csscss [css]      parse css for rulesets that have duplicated declarations
    -o, --output [path]     output path for parse css stats
    -j, --json [json]       stylestats or csscss json
    -p, --port [number]     port number for webpage

About

CLI that uses StyleStats or CSSCSS to parse a CSS file and give stats on it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published