import { type Cheerio } from "https://deno.land/x/cheerio@1.0.1/types.ts";
Methods
attr(name: string, value: AttrFunction): Cheerio
attr(name: string, value: string): Cheerio
attr(map: { [key: string]: any; }): Cheerio
val(value: string): Cheerio
removeAttr(name: string): Cheerio
has(selector: string): Cheerio
has(element: Element): Cheerio
addClass(classNames: string): Cheerio
removeClass(): Cheerio
removeClass(className: string): Cheerio
removeClass(func: (index: number, className: string) => string): Cheerio
toggleClass(className: string): Cheerio
toggleClass(className: string, toggleSwitch: boolean): Cheerio
toggleClass(toggleSwitch?: boolean): Cheerio
toggleClass(func: () => string, toggleSwitch?: boolean): Cheerio
index: number,
className: string,
toggleSwitch: boolean,
is(selection: Cheerio): boolean
find(selector: string): Cheerio
parent(selector?: string): Cheerio
parents(selector?: string): Cheerio
parentsUntil(selector?: string, filter?: string): Cheerio
parentsUntil(element: Element, filter?: string): Cheerio
prop(name: string, value: any): Cheerio
closest(): Cheerio
closest(selector: string): Cheerio
next(selector?: string): Cheerio
nextAll(): Cheerio
nextAll(selector: string): Cheerio
nextUntil(selector?: string, filter?: string): Cheerio
nextUntil(element: Element, filter?: string): Cheerio
prev(selector?: string): Cheerio
prevAll(): Cheerio
prevAll(selector: string): Cheerio
prevUntil(selector?: string, filter?: string): Cheerio
prevUntil(element: Element, filter?: string): Cheerio
slice(start: number, end?: number): Cheerio
siblings(selector?: string): Cheerio
children(selector?: string): Cheerio
contents(): Cheerio
each(func: (index: number, element: Element) => any): Cheerio
map(func: (index: number, element: Element) => any): Cheerio
filter(selector: string): Cheerio
filter(element: Element): Cheerio
filter(elements: Element[]): Cheerio
filter(func: (index: number, element: Element) => boolean): Cheerio
not(selector: string): Cheerio
not(element: Element): Cheerio
not(func: (index: number, element: Element) => boolean): Cheerio
first(): Cheerio
last(): Cheerio
eq(index: number): Cheerio
index(selection: Cheerio): number
end(): Cheerio
add(selectorOrHtml: string): Cheerio
add(element: Element): Cheerio
add(elements: Element[]): Cheerio
addBack(): Cheerio
addBack(filter: string): Cheerio
append(content: string, ...contents: any[]): Cheerio
prepend(content: string, ...contents: any[]): Cheerio
after(content: string, ...contents: any[]): Cheerio
insertAfter(content: string): Cheerio
before(content: string, ...contents: any[]): Cheerio
insertBefore(content: string): Cheerio
remove(selector?: string): Cheerio
replaceWith(content: string): Cheerio
replaceWith(content: Element): Cheerio
replaceWith(content: Element[]): Cheerio
empty(): Cheerio
html(html: string): Cheerio
text(text: string): Cheerio
wrap(content: string): Cheerio
css(propertyName: string, value: string): Cheerio
css(propertyName: string, value: number): Cheerio
css(propertyName: string, func: (index: number, value: string) => string): Cheerio
css(propertyName: string, func: (index: number, value: string) => number): Cheerio
css(properties: Object): Cheerio
clone(): Cheerio