cheerio-select

Tiny wrapper around FB55's excellent CSSselect library.

MIT License

Stars
9

cheerio-select Build Status

Tiny wrapper around fb55's excellent css-select library.

cheerio-select provides a comprehensive test suite based on sizzle's test suite.

Warning: Currently, not all tests pass, and some sizzle features will not be supported

Usage

var select = require('cheerio-select'),
    parse = require('cheerio').parse,
    dom = parse('<ul id = "fruits"><li class = "apple">Apple</li></ul>');

select('#fruits > .apple', dom);
=> [{...}]

TODO

  • Get all the unit tests to pass!

Run tests

npm install
make test

License

This Project is under the MIT License