feat: initial commit of Railtrack Pro prototype with complete test suite
This commit is contained in:
+14
@@ -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}`);
|
||||
}
|
||||
Reference in New Issue
Block a user