api documentation for cheerio (v0.22.0)

Tiny, fast, and elegant implementation of core jQuery designed specifically for the server

table of contents

  1. module cheerio
    1. function cheerio (selector, context, root, options)
    2. function cheerio.contains (container, contained)
    3. function cheerio.html (dom, options)
    4. function cheerio.load (content, options)
    5. function cheerio.parse (content, options)
    6. function cheerio.parseHTML (data, context, keepScripts)
    7. function cheerio.root ()
    8. function cheerio.text (elems)
    9. function cheerio.xml (dom)
    10. object cheerio.attributes
    11. object cheerio.cheerio.prototype
    12. object cheerio.css
    13. object cheerio.forms
    14. object cheerio.manipulation
    15. object cheerio.static
    16. object cheerio.traversing
    17. object cheerio.utils
    18. string cheerio.version
  2. module cheerio.attributes
    1. function cheerio.attributes.addClass (value)
    2. function cheerio.attributes.attr (name, value)
    3. function cheerio.attributes.data (name, value)
    4. function cheerio.attributes.hasClass (className)
    5. function cheerio.attributes.is (selector)
    6. function cheerio.attributes.prop (name, value)
    7. function cheerio.attributes.removeAttr (name)
    8. function cheerio.attributes.removeClass (value)
    9. function cheerio.attributes.toggleClass (value, stateVal)
    10. function cheerio.attributes.val (value)
  3. module cheerio.cheerio
    1. function cheerio.cheerio (selector, context, root, options)
    2. function cheerio.cheerio.contains (container, contained)
    3. function cheerio.cheerio.html (dom, options)
    4. function cheerio.cheerio.load (content, options)
    5. function cheerio.cheerio.parseHTML (data, context, keepScripts)
    6. function cheerio.cheerio.root ()
    7. function cheerio.cheerio.text (elems)
    8. function cheerio.cheerio.xml (dom)
    9. string cheerio.cheerio.version
  4. module cheerio.cheerio.prototype
    1. function cheerio.cheerio.prototype._make (dom, context)
    2. function cheerio.cheerio.prototype._makeDomArray (elem, clone)
    3. function cheerio.cheerio.prototype.add (other, context)
    4. function cheerio.cheerio.prototype.addBack (selector)
    5. function cheerio.cheerio.prototype.addClass (value)
    6. function cheerio.cheerio.prototype.after ()
    7. function cheerio.cheerio.prototype.append ()
    8. function cheerio.cheerio.prototype.appendTo (target)
    9. function cheerio.cheerio.prototype.attr (name, value)
    10. function cheerio.cheerio.prototype.before ()
    11. function cheerio.cheerio.prototype.children (selector)
    12. function cheerio.cheerio.prototype.clone ()
    13. function cheerio.cheerio.prototype.closest (selector)
    14. function cheerio.cheerio.prototype.contents ()
    15. function cheerio.cheerio.prototype.css (prop, val)
    16. function cheerio.cheerio.prototype.data (name, value)
    17. function cheerio.cheerio.prototype.each (fn)
    18. function cheerio.cheerio.prototype.empty ()
    19. function cheerio.cheerio.prototype.end ()
    20. function cheerio.cheerio.prototype.eq (i)
    21. function cheerio.cheerio.prototype.filter (match, container)
    22. function cheerio.cheerio.prototype.find (selectorOrHaystack)
    23. function cheerio.cheerio.prototype.first ()
    24. function cheerio.cheerio.prototype.get (i)
    25. function cheerio.cheerio.prototype.has (selectorOrHaystack)
    26. function cheerio.cheerio.prototype.hasClass (className)
    27. function cheerio.cheerio.prototype.html (str)
    28. function cheerio.cheerio.prototype.index (selectorOrNeedle)
    29. function cheerio.cheerio.prototype.insertAfter (target)
    30. function cheerio.cheerio.prototype.insertBefore (target)
    31. function cheerio.cheerio.prototype.is (selector)
    32. function cheerio.cheerio.prototype.last ()
    33. function cheerio.cheerio.prototype.map (fn)
    34. function cheerio.cheerio.prototype.next (selector)
    35. function cheerio.cheerio.prototype.nextAll (selector)
    36. function cheerio.cheerio.prototype.nextUntil (selector, filterSelector)
    37. function cheerio.cheerio.prototype.not (match, container)
    38. function cheerio.cheerio.prototype.parent (selector)
    39. function cheerio.cheerio.prototype.parents (selector)
    40. function cheerio.cheerio.prototype.parentsUntil (selector, filter)
    41. function cheerio.cheerio.prototype.prepend ()
    42. function cheerio.cheerio.prototype.prependTo (target)
    43. function cheerio.cheerio.prototype.prev (selector)
    44. function cheerio.cheerio.prototype.prevAll (selector)
    45. function cheerio.cheerio.prototype.prevUntil (selector, filterSelector)
    46. function cheerio.cheerio.prototype.prop (name, value)
    47. function cheerio.cheerio.prototype.remove (selector)
    48. function cheerio.cheerio.prototype.removeAttr (name)
    49. function cheerio.cheerio.prototype.removeClass (value)
    50. function cheerio.cheerio.prototype.replaceWith (content)
    51. function cheerio.cheerio.prototype.serialize ()
    52. function cheerio.cheerio.prototype.serializeArray ()
    53. function cheerio.cheerio.prototype.siblings (selector)
    54. function cheerio.cheerio.prototype.slice ()
    55. function cheerio.cheerio.prototype.splice ()
    56. function cheerio.cheerio.prototype.text (str)
    57. function cheerio.cheerio.prototype.toArray ()
    58. function cheerio.cheerio.prototype.toString ()
    59. function cheerio.cheerio.prototype.toggleClass (value, stateVal)
    60. function cheerio.cheerio.prototype.val (value)
    61. function cheerio.cheerio.prototype.wrap (wrapper)
    62. number cheerio.cheerio.prototype.length
    63. object cheerio.cheerio.prototype.options
    64. string cheerio.cheerio.prototype.cheerio
  5. module cheerio.css
    1. function cheerio.css (prop, val)
  6. module cheerio.forms
    1. function cheerio.forms.serialize ()
    2. function cheerio.forms.serializeArray ()
  7. module cheerio.manipulation
    1. function cheerio.manipulation._makeDomArray (elem, clone)
    2. function cheerio.manipulation.after ()
    3. function cheerio.manipulation.append ()
    4. function cheerio.manipulation.appendTo (target)
    5. function cheerio.manipulation.before ()
    6. function cheerio.manipulation.clone ()
    7. function cheerio.manipulation.empty ()
    8. function cheerio.manipulation.html (str)
    9. function cheerio.manipulation.insertAfter (target)
    10. function cheerio.manipulation.insertBefore (target)
    11. function cheerio.manipulation.prepend ()
    12. function cheerio.manipulation.prependTo (target)
    13. function cheerio.manipulation.remove (selector)
    14. function cheerio.manipulation.replaceWith (content)
    15. function cheerio.manipulation.text (str)
    16. function cheerio.manipulation.toString ()
    17. function cheerio.manipulation.wrap (wrapper)
  8. module cheerio.parse
    1. function cheerio.parse (content, options)
    2. function cheerio.parse.evaluate (content, options)
    3. function cheerio.parse.update (arr, parent)
  9. module cheerio.static
    1. function cheerio.static.contains (container, contained)
    2. function cheerio.static.html (dom, options)
    3. function cheerio.static.load (content, options)
    4. function cheerio.static.parseHTML (data, context, keepScripts)
    5. function cheerio.static.root ()
    6. function cheerio.static.text (elems)
    7. function cheerio.static.xml (dom)
  10. module cheerio.traversing
    1. function cheerio.traversing.add (other, context)
    2. function cheerio.traversing.addBack (selector)
    3. function cheerio.traversing.children (selector)
    4. function cheerio.traversing.closest (selector)
    5. function cheerio.traversing.contents ()
    6. function cheerio.traversing.each (fn)
    7. function cheerio.traversing.end ()
    8. function cheerio.traversing.eq (i)
    9. function cheerio.traversing.filter (match, container)
    10. function cheerio.traversing.find (selectorOrHaystack)
    11. function cheerio.traversing.first ()
    12. function cheerio.traversing.get (i)
    13. function cheerio.traversing.has (selectorOrHaystack)
    14. function cheerio.traversing.index (selectorOrNeedle)
    15. function cheerio.traversing.last ()
    16. function cheerio.traversing.map (fn)
    17. function cheerio.traversing.next (selector)
    18. function cheerio.traversing.nextAll (selector)
    19. function cheerio.traversing.nextUntil (selector, filterSelector)
    20. function cheerio.traversing.not (match, container)
    21. function cheerio.traversing.parent (selector)
    22. function cheerio.traversing.parents (selector)
    23. function cheerio.traversing.parentsUntil (selector, filter)
    24. function cheerio.traversing.prev (selector)
    25. function cheerio.traversing.prevAll (selector)
    26. function cheerio.traversing.prevUntil (selector, filterSelector)
    27. function cheerio.traversing.siblings (selector)
    28. function cheerio.traversing.slice ()
  11. module cheerio.utils
    1. function cheerio.utils.camelCase (str)
    2. function cheerio.utils.cloneDom (dom, options)
    3. function cheerio.utils.cssCase (str)
    4. function cheerio.utils.domEach (cheerio, fn)
    5. function cheerio.utils.isHtml (str)
    6. function cheerio.utils.isTag (type)

module cheerio

function cheerio (selector, context, root, options)

function cheerio.contains (container, contained)

function cheerio.html (dom, options)

function cheerio.load (content, options)

function cheerio.parse (content, options)

function cheerio.parseHTML (data, context, keepScripts)

function cheerio.root ()

function cheerio.text (elems)

function cheerio.xml (dom)

module cheerio.attributes

function cheerio.attributes.addClass (value)

function cheerio.attributes.attr (name, value)

function cheerio.attributes.data (name, value)

function cheerio.attributes.hasClass (className)

function cheerio.attributes.is (selector)

function cheerio.attributes.prop (name, value)

function cheerio.attributes.removeAttr (name)

function cheerio.attributes.removeClass (value)

function cheerio.attributes.toggleClass (value, stateVal)

function cheerio.attributes.val (value)

module cheerio.cheerio

function cheerio.cheerio (selector, context, root, options)

function cheerio.cheerio.contains (container, contained)

function cheerio.cheerio.html (dom, options)

function cheerio.cheerio.load (content, options)

function cheerio.cheerio.parseHTML (data, context, keepScripts)

function cheerio.cheerio.root ()

function cheerio.cheerio.text (elems)

function cheerio.cheerio.xml (dom)

module cheerio.cheerio.prototype

function cheerio.cheerio.prototype._make (dom, context)

function cheerio.cheerio.prototype._makeDomArray (elem, clone)

function cheerio.cheerio.prototype.add (other, context)

function cheerio.cheerio.prototype.addBack (selector)

function cheerio.cheerio.prototype.addClass (value)

function cheerio.cheerio.prototype.after ()

function cheerio.cheerio.prototype.append ()

function cheerio.cheerio.prototype.appendTo (target)

function cheerio.cheerio.prototype.attr (name, value)

function cheerio.cheerio.prototype.before ()

function cheerio.cheerio.prototype.children (selector)

function cheerio.cheerio.prototype.clone ()

function cheerio.cheerio.prototype.closest (selector)

function cheerio.cheerio.prototype.contents ()

function cheerio.cheerio.prototype.css (prop, val)

function cheerio.cheerio.prototype.data (name, value)

function cheerio.cheerio.prototype.each (fn)

function cheerio.cheerio.prototype.empty ()

function cheerio.cheerio.prototype.end ()

function cheerio.cheerio.prototype.eq (i)

function cheerio.cheerio.prototype.filter (match, container)

function cheerio.cheerio.prototype.find (selectorOrHaystack)

function cheerio.cheerio.prototype.first ()

function cheerio.cheerio.prototype.get (i)

function cheerio.cheerio.prototype.has (selectorOrHaystack)

function cheerio.cheerio.prototype.hasClass (className)

function cheerio.cheerio.prototype.html (str)

function cheerio.cheerio.prototype.index (selectorOrNeedle)

function cheerio.cheerio.prototype.insertAfter (target)

function cheerio.cheerio.prototype.insertBefore (target)

function cheerio.cheerio.prototype.is (selector)

function cheerio.cheerio.prototype.last ()

function cheerio.cheerio.prototype.map (fn)

function cheerio.cheerio.prototype.next (selector)

function cheerio.cheerio.prototype.nextAll (selector)

function cheerio.cheerio.prototype.nextUntil (selector, filterSelector)

function cheerio.cheerio.prototype.not (match, container)

function cheerio.cheerio.prototype.parent (selector)

function cheerio.cheerio.prototype.parents (selector)

function cheerio.cheerio.prototype.parentsUntil (selector, filter)

function cheerio.cheerio.prototype.prepend ()

function cheerio.cheerio.prototype.prependTo (target)

function cheerio.cheerio.prototype.prev (selector)

function cheerio.cheerio.prototype.prevAll (selector)

function cheerio.cheerio.prototype.prevUntil (selector, filterSelector)

function cheerio.cheerio.prototype.prop (name, value)

function cheerio.cheerio.prototype.remove (selector)

function cheerio.cheerio.prototype.removeAttr (name)

function cheerio.cheerio.prototype.removeClass (value)

function cheerio.cheerio.prototype.replaceWith (content)

function cheerio.cheerio.prototype.serialize ()

function cheerio.cheerio.prototype.serializeArray ()

function cheerio.cheerio.prototype.siblings (selector)

function cheerio.cheerio.prototype.slice ()

function cheerio.cheerio.prototype.splice ()

function cheerio.cheerio.prototype.text (str)

function cheerio.cheerio.prototype.toArray ()

function cheerio.cheerio.prototype.toString ()

function cheerio.cheerio.prototype.toggleClass (value, stateVal)

function cheerio.cheerio.prototype.val (value)

function cheerio.cheerio.prototype.wrap (wrapper)

module cheerio.css

function cheerio.css (prop, val)

module cheerio.forms

function cheerio.forms.serialize ()

function cheerio.forms.serializeArray ()

module cheerio.manipulation

function cheerio.manipulation._makeDomArray (elem, clone)

function cheerio.manipulation.after ()

function cheerio.manipulation.append ()

function cheerio.manipulation.appendTo (target)

function cheerio.manipulation.before ()

function cheerio.manipulation.clone ()

function cheerio.manipulation.empty ()

function cheerio.manipulation.html (str)

function cheerio.manipulation.insertAfter (target)

function cheerio.manipulation.insertBefore (target)

function cheerio.manipulation.prepend ()

function cheerio.manipulation.prependTo (target)

function cheerio.manipulation.remove (selector)

function cheerio.manipulation.replaceWith (content)

function cheerio.manipulation.text (str)

function cheerio.manipulation.toString ()

function cheerio.manipulation.wrap (wrapper)

module cheerio.parse

function cheerio.parse (content, options)

function cheerio.parse.evaluate (content, options)

function cheerio.parse.update (arr, parent)

module cheerio.static

function cheerio.static.contains (container, contained)

function cheerio.static.html (dom, options)

function cheerio.static.load (content, options)

function cheerio.static.parseHTML (data, context, keepScripts)

function cheerio.static.root ()

function cheerio.static.text (elems)

function cheerio.static.xml (dom)

module cheerio.traversing

function cheerio.traversing.add (other, context)

function cheerio.traversing.addBack (selector)

function cheerio.traversing.children (selector)

function cheerio.traversing.closest (selector)

function cheerio.traversing.contents ()

function cheerio.traversing.each (fn)

function cheerio.traversing.end ()

function cheerio.traversing.eq (i)

function cheerio.traversing.filter (match, container)

function cheerio.traversing.find (selectorOrHaystack)

function cheerio.traversing.first ()

function cheerio.traversing.get (i)

function cheerio.traversing.has (selectorOrHaystack)

function cheerio.traversing.index (selectorOrNeedle)

function cheerio.traversing.last ()

function cheerio.traversing.map (fn)

function cheerio.traversing.next (selector)

function cheerio.traversing.nextAll (selector)

function cheerio.traversing.nextUntil (selector, filterSelector)

function cheerio.traversing.not (match, container)

function cheerio.traversing.parent (selector)

function cheerio.traversing.parents (selector)

function cheerio.traversing.parentsUntil (selector, filter)

function cheerio.traversing.prev (selector)

function cheerio.traversing.prevAll (selector)

function cheerio.traversing.prevUntil (selector, filterSelector)

function cheerio.traversing.siblings (selector)

function cheerio.traversing.slice ()

module cheerio.utils

function cheerio.utils.camelCase (str)

function cheerio.utils.cloneDom (dom, options)

function cheerio.utils.cssCase (str)

function cheerio.utils.domEach (cheerio, fn)

function cheerio.utils.isHtml (str)

function cheerio.utils.isTag (type)

[ this document was created with utility2 ]