@csstools/selector-specificity

v2.1.0
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.mjs

clean

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

stryker

stryker run --logLevel error

prebuild

npm run clean

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
  • ^14 || ^16 || >=18
  • Unknown
  • released 1/19/2023

Downloads