cheerio

The fast, flexible & elegant library for parsing and manipulating HTML and XML.

Get Started!

Proven syntax

Cheerio implements a subset of core jQuery. Cheerio removes all the DOM inconsistencies and browser cruft from the jQuery library, revealing its truly gorgeous API.

Blazingly fast

Cheerio works with a very simple, consistent DOM model. As a result parsing, manipulating, and rendering are incredibly efficient.

Incredibly flexible

Cheerio can parse nearly any HTML or XML document. Cheerio works in both browser and server environments.

What Our Users Say

Axel Rauschmayer's avatar
Axel Rauschmayer
@rauschma

For transforming HTML via Node.js scripts, @mattmueller's cheerio works really well.

Aug 3, 2015
Valeri Karpov's avatar
Valeri Karpov
@code_barbarian

Cheerio is a weird npm module: most devs have never heard of it, but I rarely build an app without it. So much utility for quick and easy HTML transformations.

Jan 19, 2023
Thomas Boutell's avatar
Thomas Boutell
@boutell

You probably shouldn't use jQuery, but if you're great at jQuery, you're going to be really popular on server-side projects that need web scraping or HTML transformation. "npm install cheerio" ahoy!

Jul 8, 2021
Alistair G MacDonald's avatar
Alistair G MacDonald
@html5js

Looking for a faster, cleaner alternative to basic JSDOM? Try Cheerio! #npm #javascript #nodejs

Jan 6, 2015
Yogini Bende's avatar
Yogini Bende
@hey_yogini

Cheerio is fire

Dec 3, 2021
Jonny Frodsham's avatar
Jonny Frodsham
@jonnyfrodsham

Needed to do a quick web scrape in Node for a demo. Seems like I'm back using jQuery in the super timesaving cheerio npm package

Nov 30, 2017
Thomas Steiner's avatar
Thomas Steiner
@tomayac

npm install cheerio. That's the #jQuery DOM API for #nodeJS essentially. Thanks, @MattMueller

Nov 1, 2012
Mike Pennisi's avatar
Mike Pennisi
@JugglinMike

Thank you @fb55 for tirelessly pushing Cheerio to version 1.0. That library helps so many developers expand their horizons beyond the browser, and you've been making it possible for a decade!

Jun 11, 2021
Matthew Phillips's avatar
Matthew Phillips
@matthewcp

Cheerio is (still) such a useful tool for manipulating HTML. Shout to @MattMueller for saving me an untold amount of time over the years.

Oct 23, 2019
Learn more about Cheerio ›