Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

§Classes

Cheerio
Document

The root node of the document.

Element

An element within the DOM.

Node

This object will be used as the prototype for Nodes when creating a DOM-Level-1-compliant structure.

NodeWithChildren

A Node that can have children.

§Variables

contains deprecated

In order to promote consistency with the jQuery library, users are encouraged to instead use the static method of the same name.

default
merge deprecated

In order to promote consistency with the jQuery library, users are encouraged to instead use the static method of the same name.

parseHTML deprecated

In order to promote consistency with the jQuery library, users are encouraged to instead use the static method of the same name as it is defined on the "loaded" Cheerio factory function.

root deprecated

Users seeking to access the top-level element of a parsed document should instead use the root static method of a "loaded" Cheerio function.

§Functions

load

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.

§Interfaces

Cheerio
CheerioAPI

A querying function, bound to a document created from the provided markup.

CheerioOptions

Options accepted by Cheerio.

HTMLParser2Options

Options accepted by htmlparser2, the default parser for XML.

Parse5Options

Options for parse5, the default parser for HTML.

§Type Aliases

AcceptedElems

Elements that can be passed to manipulation methods, including functions.

AcceptedFilters

Supported filter types, for traversal methods.

BasicAcceptedElems

Elements that can be passed to manipulation methods.

FilterFunction

Function signature, for traversal methods.

SelectorType

Type for identifying selectors. Allows us to "upgrade" queries using selectors to return Elements.