#!/usr/bin/env node // CLI uses CommonJS require to support older versions of Node.js var specificity = require('../dist/specificity'), selector = process.argv[2], result; if (selector) { result = specificity.calculate(selector)[0]; console.log(result.specificity); } else { console.log('Usage: specificity '); console.log('Computes specificity of a CSS selector.'); process.exit(1); }