This commit is contained in:
Your Name
2026-07-23 17:56:25 +08:00
parent a05dae8412
commit 4970d8f8d3
4262 changed files with 735221 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env node
import Specificity from '../dist/index.js';
if (!process.argv[2]) {
console.error('❌ Missing selector argument');
process.exit(1);
}
try {
const specificities = Specificity.calculate(process.argv[2]);
console.log(specificities.map((specificity) => `${specificity}`).join('\n'));
} catch (e) {
console.error(`${e.message}`);
}