cssplexity-cli
A simple CLI tool to calculate the cyclomatic complexity of CSS selectors based on CSSplexity
Last updated 4 years ago by rasshofer .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install cssplexity-cli -g
SYNC missed versions from official npm registry.

CSSplexity CLI

A simple CLI tool to calculate the cyclomatic complexity of CSS selectors based on CSSplexity

Build Status Dependency Status Dependency Status

Installation

npm install -g cssplexity-cli

Usage

curl -s http://example.com/main.css | cssplexity
cssplexity main.css

Using the parameter max, you’re able to specify a maximum complexity. In case this limit is exceeded, CSSplexity CLI will exit the process with 1. This benefits integration into build/CI systems like Jenkins or Travis.

cssplexity --max=5 main.css

Changelog

  • 0.0.3
    • Update outdated dependencies
    • Fix README
  • 0.0.2
    • Add tests
  • 0.0.1
    • Initial version

License

Copyright (c) 2016 Thomas Rasshofer
Licensed under the MIT license.

See LICENSE for more info.

Current Tags

  • 0.0.3                                ...           latest (4 years ago)

2 Versions

  • 0.0.3                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |