Cheerio is a library for parsing and manipulating HTML and XML in JavaScript and TypeScript environments.
Cheerio solves the problem of server-side HTML and XML processing by implementing a jQuery-compatible API that works outside the browser. Rather than reimplementing the full jQuery library, it extracts jQuery's core selector and manipulation syntax and applies it to a lightweight DOM model. The library wraps parse5 for HTML parsing and can optionally use htmlparser2 for more forgiving parsing, allowing it to handle nearly any HTML or XML document format.
Cheerio suits projects that need to scrape, parse, or manipulate HTML and XML on the server side or in non-browser JavaScript environments. It works in both Node.js and Deno. Developers familiar with jQuery will find the API immediately recognizable, since Cheerio implements a subset of jQuery's core methods for selecting elements, traversing the DOM, and rendering output. The tool is particularly valuable for web scraping tasks and server-side HTML processing where browser APIs are unavailable.
The project maintains active continuous integration with automated testing and code coverage tracking. Development activity shows consistent attention to security practices and standards compliance.