Skip to content

Commit 5dfbd35

Browse files
authoredMay 8, 2021
docs(readme): Remove now-invalid require
The equivalent would be ```js const $ = require('cheerio').default; ``` The `default` export is deprecated, so removing the reference here.
1 parent 783fd7a commit 5dfbd35

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

‎Readme.md

-2
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,12 @@ $.html();
100100
Optionally, you can also load in the HTML by passing the string as the context:
101101

102102
```js
103-
const $ = require('cheerio');
104103
$('ul', '<ul id="fruits">...</ul>');
105104
```
106105

107106
Or as the root:
108107

109108
```js
110-
const $ = require('cheerio');
111109
$('li', 'ul', '<ul id="fruits">...</ul>');
112110
```
113111

0 commit comments

Comments
 (0)
Please sign in to comment.