UNPKG

985 BMarkdownView Raw
1# cheerio-select [![NPM version](http://img.shields.io/npm/v/cheerio-select.svg)](https://npmjs.org/package/cheerio-select) [![Build Status](https://travis-ci.org/cheeriojs/cheerio-select.svg?branch=master)](http://travis-ci.org/cheeriojs/cheerio-select) [![Downloads](https://img.shields.io/npm/dm/cheerio-select.svg)](https://npmjs.org/package/cheerio-select) [![Coverage](https://coveralls.io/repos/cheeriojs/cheerio-select/badge.svg?branch=master)](https://coveralls.io/r/cheeriojs/cheerio-select)
2
3CSS selector engine supporting jQuery selectors, based on [`css-select`](https://github.com/fb55/css-select).
4
5Supports all jQuery positional pseudo-selectors:
6
7- `:first`
8- `:last`
9- `:eq`
10- `:nth`
11- `:gt`
12- `:lt`
13- `:even`
14- `:odd`
15- `:not(:positional)`, where `:positional` is any of the above.
16
17This library is a thin wrapper around [`css-select`](https://github.com/fb55/css-select).
18Only use this module if you will actually use jQuery positional selectors.