Re-exporting all of the node types.
Elements that can be passed to manipulation methods, including functions.
Supported filter types, for traversal methods.
Elements that can be passed to manipulation methods.
Function signature, for traversal methods.
Type for identifying selectors. Allows us to "upgrade" queries using
selectors to return Element
s.
The default cheerio instance.
Create a querying function, bound to a document created from the provided markup.
Note that similar to web browser contexts, this operation may introduce
<html>
, <head>
, and <body>
elements; set isDocument
to false
to
switch to fragment mode and disable this.
Markup to be loaded.
Options for the created instance.
Allows parser to be switched to fragment mode.
The loaded document.
$.merge().
First array.
Second array.
arr1
, with elements of arr2
inserted.
Parses a string into an array of DOM nodes. The context
argument has no
meaning for Cheerio, but it is maintained for API compatibility with jQuery.
Markup that will be parsed.
Will be ignored. If it is a boolean it will be used as the
value of keepScripts
.
If false all scripts will be removed.
The parsed DOM.
Sometimes you need to work with the top-level root element. To query it, you
can use $.root()
.
Cheerio instance wrapping the root node.
Re-exporting all of the node types.