fb55
Repos
42
Followers
417
Following
43

The fast & forgiving HTML and XML parser

3641
335

Fast, flexible, and lean implementation of core jQuery designed specifically for the server.

25502
1411

HTML parsing/serialization toolset for Node.js. WHATWG HTML Living Standard (aka HTML5)-compliant.

3127
202

a CSS selector compiler & engine

459
65

Handler for htmlparser2, to get a DOM

260
64

Encode & decode HTML & XML entities with ease & speed

247
52

Events

issue comment
Cannot find module "cheerio"

Could you provide a reproducible example?

Just as a heads-up: I suspect that this is a deployment platform issue, not a cheerio issue. Otherwise this would be more wise-spread.

Created at 2 days ago
issue comment
TypeError: ext[key].bind is not a function

Newer version of this library, domutils.

Created at 2 days ago
issue comment
TypeError: ext[key].bind is not a function

Fix for this is to upgrade to a newer version.

Created at 2 days ago
Created at 1 week ago
started
Created at 1 week ago

fix(types): Import types from complete paths (#2759)

Created at 2 weeks ago
delete branch
fb55 delete branch type-paths
Created at 2 weeks ago
closed issue
Cannot find module '.' or its corresponding type declarations

when I use cheerio in my project with typescript, and try to compile it by tsc. The compiler throws an exception described below:

error TS2307: Cannot find module '.' or its corresponding type declarations.

2 import type { CheerioAPI, Cheerio } from '.'; 

Found 1 error in node_modules/cheerio/lib/esm/static.d.ts:2

This seems to be a bug in the package itself. How should I solve this problem? Thanks.

And I only use cheerio in my project like this:

import * as cheerio from "cheerio";
cheerio.load(content) // The type of content is string.

"cheerio": "^1.0.0-rc.12" "@types/cheerio": "^0.22.31" node v16.16.0 npm v8.16.0

Created at 2 weeks ago
pull request closed
fix(types): Import types from complete paths

Fixes #2703

Created at 2 weeks ago
pull request opened
fix(types): Import types from complete paths

Fixes #2703

Created at 2 weeks ago
create branch
fb55 create branch type-paths
Created at 2 weeks ago
issue comment
DecodeEntities not keeping '>' symbol in the html.

That's almost the answer: The reason why decodeEntities doesn't work is that it is an option for htmlparser2, which isn't the default parser. Have a look at https://github.com/cheeriojs/cheerio#using-htmlparser2 for more details. The easiest way around this is probably by using the slim export.

Leaving this open to track the deeper issue.

Created at 2 weeks ago
issue comment
[Bug] SelectAll changes array of elements passed to it by reference

This works as expected, but should be documented. Thanks for raising the issue!

Created at 2 weeks ago
pull request closed
feat(boolbase): Convert to typescript

The greatest now even greater and smaller

Created at 2 weeks ago
issue comment
feat(boolbase): Convert to typescript

Thanks for sending this! I don't ever want to release another version of this module, so I'm going to close the PR — see https://github.com/fb55/boolbase/issues/3#issuecomment-719655921 for an explanation. Hope that's okay!

Created at 2 weeks ago
delete branch
fb55 delete branch docs/sponsors
Created at 2 weeks ago

Update Sponsors (#2753)

Co-authored-by: fb55 fb55@users.noreply.github.com

Created at 2 weeks ago
pull request closed
Update Sponsors

Automated changes by create-pull-request GitHub action

Created at 2 weeks ago

chore(sponsors): Allow manual action start

Created at 2 weeks ago
delete branch
fb55 delete branch sponsor-updates
Created at 2 weeks ago

chore(sponsors): Resize all avatars to 128x128 (#2752)

Created at 2 weeks ago
pull request closed
chore(sponsors): Resize all avatars to 128x128

GitHub unfortunately removed the style tag, so let's use imgix to resize the avatars.

Created at 2 weeks ago
pull request opened
chore(sponsors): Resize all avatars to 128x128

GitHub unfortunately removed the style tag, so let's use imgix to resize the avatars.

Created at 2 weeks ago

chore(sponsors): Fix mislabeled org (#2751)

chore(sponsors): Resize all avatars to 128x128

GitHub unfortunately removed the style tag, so let's use imgix to resize the avatars.

Created at 2 weeks ago
create branch
fb55 create branch sponsor-updates
Created at 2 weeks ago
delete branch
fb55 delete branch sponsor-updates
Created at 2 weeks ago

chore(sponsors): Fix mislabeled org (#2751)

Created at 2 weeks ago
pull request closed
chore(sponsors): Fix mislabeled org
Created at 2 weeks ago
pull request opened
chore(sponsors): Fix mislabeled org
Created at 2 weeks ago
create branch
fb55 create branch sponsor-updates
Created at 2 weeks ago