Tiny wrapper around FB55's excellent CSSselect library.
JavaScript Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
lib
test
.gitignore
.npmignore
.travis.yml
HISTORY.md
LICENSE
Makefile
README.md
index.js
package.json

README.md

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