Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
Cheerio
Interface Cheerio
Index
Methods
addClass
after
append
attr
before
children
clone
contains
dom
each
empty
eq
filter
find
first
hasClass
html
inArray
isArray
last
map
merge
next
parent
prepend
prev
remove
removeAttr
removeClass
replaceWith
root
siblings
text
toArray
Methods
public
addClass
(
classNames
:
string
)
:
Cheerio
Parameters
classNames:
string
Returns
Cheerio
public
after
(
content
?:
Array<any>
)
:
Cheerio
Parameters
content?:
Array<any>
optional
Returns
Cheerio
public
append
(
content
?:
Array<any>
)
:
Cheerio
Parameters
content?:
Array<any>
optional
Returns
Cheerio
public
attr
(
attributeName
:
string
, value
:
any
)
:
Cheerio
Parameters
attributeName:
string
value:
any
Returns
Cheerio
public
attr
(
attributeName
:
string
)
:
string
Parameters
attributeName:
string
Returns
string
public
before
(
content
?:
Array<any>
)
:
Cheerio
Parameters
content?:
Array<any>
optional
Returns
Cheerio
public
children
(
selector
?:
any
)
:
Cheerio
Parameters
selector?:
any
optional
Returns
Cheerio
public
clone
(
)
:
Cheerio
Returns
Cheerio
public
contains
(
container
:
Element
, contained
:
Element
)
:
boolean
Parameters
container:
Element
contained:
Element
Returns
boolean
public
dom
(
)
:
any
Returns
any
public
each
(
func
:
(index: any, elem: any) => Cheerio
)
:
any
Parameters
func:
(index: any, elem: any) => Cheerio
Returns
any
public
empty
(
)
:
Cheerio
Returns
Cheerio
public
eq
(
index
:
number
)
:
Cheerio
Parameters
index:
number
Returns
Cheerio
public
filter
(
selector
:
string
)
:
Cheerio
Parameters
selector:
string
Returns
Cheerio
public
filter
(
func
:
(index: any) => any
)
:
Cheerio
Parameters
func:
(index: any) => any
Returns
Cheerio
public
find
(
selector
:
string
)
:
Cheerio
Parameters
selector:
string
Returns
Cheerio
public
first
(
)
:
Cheerio
Returns
Cheerio
public
hasClass
(
className
:
string
)
:
boolean
Parameters
className:
string
Returns
boolean
public
html
(
htmlString
:
string
)
:
Cheerio
Parameters
htmlString:
string
Returns
Cheerio
public
html
(
)
:
string
Returns
string
public
inArray
(
value
:
any
, array
:
Array<any>
, fromIndex
?:
number
)
:
number
Parameters
value:
any
array:
Array<any>
fromIndex?:
number
optional
Returns
number
public
isArray
(
obj
:
any
)
:
boolean
Parameters
obj:
any
Returns
boolean
public
last
(
)
:
Cheerio
Returns
Cheerio
public
map
(
callback
:
(index: any, domElement: Element) => any
)
:
Cheerio
Parameters
callback:
(index: any, domElement: Element) => any
Returns
Cheerio
public
merge
(
first
:
Array<any>
, second
:
Array<any>
)
:
Array<any>
Parameters
first:
Array<any>
second:
Array<any>
Returns
Array<any>
public
next
(
)
:
Cheerio
Returns
Cheerio
public
parent
(
)
:
Cheerio
Returns
Cheerio
public
prepend
(
content
?:
Array<any>
)
:
Cheerio
Parameters
content?:
Array<any>
optional
Returns
Cheerio
public
prev
(
)
:
Cheerio
Returns
Cheerio
public
remove
(
selector
:
string
)
:
Cheerio
Parameters
selector:
string
Returns
Cheerio
public
removeAttr
(
attributeName
:
any
)
:
Cheerio
Parameters
attributeName:
any
Returns
Cheerio
public
removeClass
(
className
?:
any
)
:
Cheerio
Parameters
className?:
any
optional
Returns
Cheerio
public
replaceWith
(
content
:
string
)
:
Cheerio
Parameters
content:
string
Returns
Cheerio
public
root
(
)
:
Cheerio
Returns
Cheerio
public
siblings
(
)
:
Cheerio
Returns
Cheerio
public
text
(
textString
:
string
)
:
Cheerio
Parameters
textString:
string
Returns
Cheerio
public
text
(
)
:
string
Returns
string
public
toArray
(
)
:
Array<any>
Returns
Array<any>
Globals
cheerio