@csstools/selector-specificity

v2.0.2
Determine selector specificity with postcss-selector-parser
css postcss-selector-parser specificity

lint

npm run lint:eslint && npm run lint:package-json

test

npm run test:exports && node ./test/example.mjs && node ./test/test.mjs && node ./test/tests-from-bramus-specificity.mjs && node ./test/tests-from-keeganstreet-specificity.mjs && node ./test/test-compare.mjs

build

rollup -c ../../rollup/default.js

clean

node -e "fs.rmSync('./dist', { recursive: true, force: true });"

stryker

stryker run --logLevel error

lint:eslint

eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern

test:exports

node ./test/_import.mjs && node ./test/_require.cjs

prepublishOnly

npm run clean && npm run build && npm run test

lint:package-json

node ../../.github/bin/format-package-json.mjs
npm i @csstools/[email protected]

Metadata

  • CC0-1.0
  • ^12 || ^14 || >=16
  • Unknown
  • released 7/8/2022

Downloads