Skip to content

matthewmueller/cheerio-select

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Tiny wrapper around FB55's excellent CSSselect library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published