Skip to content

Commit

Permalink
docs(readme): Remove now-invalid require
Browse files Browse the repository at this point in the history
The equivalent would be

```js
const $ = require('cheerio').default;
```

The `default` export is deprecated, so removing the reference here.
  • Loading branch information
fb55 committed May 8, 2021
1 parent 783fd7a commit 5dfbd35
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Readme.md
Expand Up @@ -100,14 +100,12 @@ $.html();
Optionally, you can also load in the HTML by passing the string as the context:

```js
const $ = require('cheerio');
$('ul', '<ul id="fruits">...</ul>');
```

Or as the root:

```js
const $ = require('cheerio');
$('li', 'ul', '<ul id="fruits">...</ul>');
```

Expand Down

0 comments on commit 5dfbd35

Please sign in to comment.