Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Jun 15, 2024 via pnpm

cheerio 0.22.0

Tiny, fast, and elegant implementation of core jQuery designed specifically for the server
Package summary
Share
5
issues
1
critical severity
license
1
3
high severity
vulnerability
2
license
1
1
low severity
license
1
5
licenses
19
MIT
6
BSD-2-Clause
2
ISC
2
other licenses
BSD-like
1
N/A
1
Package created
8 Oct 2011
Version published
23 Aug 2016
Maintainers
2
Total deps
29
Direct deps
16
License
MIT

Issues

5

1 critical severity issue

critical
Recommendation: Check the package code and files for license information
via: css-select@1.2.0
Collapse
Expand

3 high severity issues

high
Recommendation: Upgrade to version 2.0.1 or later
via: css-select@1.2.0
Recommendation: None
via: lodash.pick@4.4.0
Recommendation: Validate that the package complies with your license policy
via: css-select@1.2.0
Collapse
Expand

1 low severity issue

low
Recommendation: Read and validate the license terms
via: css-select@1.2.0
Collapse
Expand

Licenses

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
19 Packages, Including:
cheerio@0.22.0
dom-serializer@0.1.1
htmlparser2@3.10.1
lodash.assignin@4.2.0
lodash.bind@4.2.1
lodash.defaults@4.2.0
lodash.filter@4.6.0
lodash.flatten@4.4.0
lodash.foreach@4.5.0
lodash.map@4.6.0
lodash.merge@4.6.2
lodash.pick@4.4.0
lodash.reduce@4.6.0
lodash.reject@4.6.0
lodash.some@4.6.0
readable-stream@3.6.2
safe-buffer@5.2.1
string_decoder@1.3.0
util-deprecate@1.0.2

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
6 Packages, Including:
css-what@2.1.3
domelementtype@1.3.1
domhandler@2.4.2
domutils@1.7.0
entities@1.1.2
nth-check@1.0.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
2 Packages, Including:
boolbase@1.0.0
inherits@2.0.4

BSD-like

Invalid
Not OSI Approved
1 Packages, Including:
css-select@1.2.0

N/A

N/A
1 Packages, Including:
domutils@1.5.1
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

16
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
css-select1.2.09.71 kBBSD-like
prod
1
2
1
dom-serializer0.1.12.1 kBMIT
prod
entities1.1.216.94 kBBSD-2-Clause
prod
htmlparser23.10.111.37 kBMIT
prod
lodash.assignin4.2.05.74 kBMIT
prod
lodash.bind4.2.110.15 kBMIT
prod
lodash.defaults4.2.06.12 kBMIT
prod
lodash.filter4.6.015.12 kBMIT
prod
lodash.flatten4.4.04.05 kBMIT
prod
lodash.foreach4.5.05.28 kBMIT
prod
lodash.map4.6.015.23 kBMIT
prod
lodash.merge4.6.212.77 kBMIT
prod
lodash.pick4.4.05.07 kBMIT
prod
1
lodash.reduce4.6.015.42 kBMIT
prod
lodash.reject4.6.015.29 kBMIT
prod
lodash.some4.6.015.21 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.