Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 8, 2024 via pnpm

cheerio 1.0.0-rc.12

Tiny, fast, and elegant implementation of core jQuery designed specifically for the server
Package summary
Share
0
issues
3
licenses
8
BSD-2-Clause
5
MIT
1
ISC
Package created
8 Oct 2011
Version published
26 Jun 2022
Maintainers
2
Total deps
14
Direct deps
7
License
MIT

Issues

0
This package has no issues

Licenses

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
8 Packages, Including:
cheerio-select@2.1.0
css-select@5.1.0
css-what@6.1.0
domelementtype@2.3.0
domhandler@5.0.3
domutils@3.1.0
entities@4.5.0
nth-check@2.1.1

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
5 Packages, Including:
cheerio@1.0.0-rc.12
dom-serializer@2.0.0
htmlparser2@8.0.2
parse5-htmlparser2-tree-adapter@7.0.0
parse5@7.1.2

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
boolbase@1.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

7
All Dependencies CSV
β“˜ This is a list of cheerio 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
cheerio-select2.1.011.79 kBBSD-2-Clause
prod
dom-serializer2.0.06.66 kBMIT
prod
domhandler5.0.312.29 kBBSD-2-Clause
prod
domutils3.1.023.28 kBBSD-2-Clause
prod
htmlparser28.0.237.62 kBMIT
prod
parse5-htmlparser2-tree-adapter7.0.03.73 kBMIT
prod
parse57.1.286.24 kBMIT
prod

Visualizations

Frequently Asked Questions

What does cheerio do?

Cheerio is a tiny, fast, and elegant Node.js library that implements the core functionality of jQuery. It is specifically designed for server use and is mainly used for web scraping purposes. It works with a simple, consistent DOM model making parsing, manipulating, and rendering incredibly efficient. Cheerio does not produce a visual rendering, does not apply CSS, does not load external resources, or execute JavaScript. This sets it apart from a traditional web browser and makes it much quicker and efficient.

How do you use cheerio?

Cheerio is easy to integrate and use in your JavaScript or TypeScript code. After installing the package using npm, you can load HTML content into Cheerio and then manipulate and traverse the DOM just like you would with jQuery. Here's an example of how you can use Cheerio:

const cheerio = require('cheerio');
const $ = cheerio.load('<h2 class="title">Hello world</h2>');

$('h2.title').text('Hello there!');
$('h2').addClass('welcome');

$.html();
//=> <html><head></head><body><h2 class="title welcome">Hello there!</h2></body></html>

Cheerio provides a familiar jQuery-like syntax for selecting, traversing, and manipulating the DOM. You can change text, add classes, and even select elements using CSS selectors.

Where are the cheerio docs?

You can find detailed information about the use of Cheerio in its official documentation, which is available on the GitHub repository at git://github.com/cheeriojs/cheerio.git. The GitHub repository provides complete and thorough documentation of the API, as well as examples of how to use the library. For an in-depth understanding of Cheerio and its application, the documentation is the best place to start.