cheerio

Loading

NameDescription
loadCreate a querying function, bound to a document created from the provided markup.
decodeStreamParses a stream of buffers into a document.
fromURLfromURL loads a document from a URL.
loadBufferSniffs the encoding of a buffer, then creates a querying function bound to a document created from the buffer.
stringStreamCreates a stream that parses a sequence of strings into a document.

Other

NameDescription
CheerioThe cheerio class is the central class of the library. It wraps a set of elements and provides an API for traversing, modifying, and interacting with the set.
CheerioAPIA querying function, bound to a document created from the provided markup.
CheerioOptionsOptions accepted by Cheerio.
CheerioRequestOptionsOptions accepted by Cheerio.
DecodeStreamOptionsOptions accepted by Cheerio.
HTMLParser2OptionsOptions accepted by htmlparser2, the default parser for XML.
AcceptedElemsElements that can be passed to manipulation methods, including functions.
AcceptedFiltersSupported filter types, for traversal methods.
BasicAcceptedElemsElements that can be passed to manipulation methods.
FilterFunctionFunction signature, for traversal methods.
SelectorTypeType for identifying selectors. Allows us to “upgrade” queries using selectors to return Elements.

Static

FunctionDescription
containsChecks to see if the contained DOM element is a descendant of the container DOM element.
merge$.merge().