Skip to main content
Latest
class Cheerio
implements ArrayLike<T>
Re-export
Abstract
import { Cheerio } from "https://deno.land/x/deno_temme@v1.0.0/deps.ts";

Constructors

new
Cheerio(
elements: ArrayLike<T> | undefined,
root: Cheerio<Document> | null,
options: InternalOptions,
)

Instance of cheerio. Methods are specified in the modules. Usage of this constructor is not recommended. Please use $.load instead.

Index Signatures

[index: number]: T

Properties

_root: Cheerio<Document> | null

The root of the document. Can be set by using the root argument of the constructor.

length: number
options: InternalOptions
prevObject: Cheerio<any> | undefined

Methods

abstract
_make<T>(dom: ArrayLike<T> | T | string, context?: BasicAcceptedElems<AnyNode>): Cheerio<T>

Make a cheerio object.

abstract
_parse(
content:
| string
| Document
| AnyNode
| AnyNode[]
| Buffer
,
options: InternalOptions,
isDocument: boolean,
context: ParentNode | null,
): Document

Parses some content.

abstract
_render(dom: AnyNode | ArrayLike<AnyNode>): string

Render an element or a set of elements.

interface Cheerio
implements AttributesType, TraversingType, ManipulationType, CssType, FormsType, Iterable<T>
Re-export
import { type Cheerio } from "https://deno.land/x/deno_temme@v1.0.0/deps.ts";

Properties

cheerio: "[cheerio object]"
splice: Array.prototype.slice