normalize-selector

Normalize CSS Selectors

MIT 6 个版本
CSS
安装
npm install normalize-selector
yarn add normalize-selector
pnpm add normalize-selector
bun add normalize-selector
README

Normalize-Selector

Normalize CSS selectors.

Examples:

  • #foo>.bar -> #foo > .bar
  • #foo > .bar -> #foo > .bar
  • foo[ a = 'b' ] -> foo[a='b']

Tests

Run mocha tests on node.js with:

npm test

or:

node ./test/mocha/node-suite.js

rawgithub

View the browser suite directly on rawgithub

License

The code and all the documentation are released under the MIT license.

http://getify.mit-license.org/

版本列表
0.2.0 2015-08-10
0.1.0 2015-08-04
0.0.3-a 2015-03-12
0.0.2-a 2014-04-16
0.0.1-a 2014-04-13
0.0.0-a 2014-03-26