normalize-selector

0.2.0 • Public • Published

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/

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i normalize-selector

    Weekly Downloads

    1,432,309

    Version

    0.2.0

    License

    MIT

    Last publish

    Collaborators

    • getify