Skip to content

Commit d83c834

Browse files
authored
Update README.md
1 parent 4a09157 commit d83c834

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

README.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# NOTE: this is documentation for next major version, which is work in progress. If you need documentation for version 3 you can find it [here](https://github.com/website-scraper/node-website-scraper/blob/3.x/README.md)
2-
31
## Introduction
42
Download website to a local directory (including all css, images, js, etc.)
53

@@ -35,20 +33,14 @@ const options = {
3533
directory: '/path/to/save/',
3634
};
3735

38-
// with promise
39-
scrape(options).then((result) => {
40-
/* some code here */
41-
}).catch((err) => {
42-
/* some code here */
43-
});
44-
4536
// with async/await
4637
const result = await scrape(options);
4738

39+
// with promise
40+
scrape(options).then((result) => {});
41+
4842
// or with callback
49-
scrape(options, (error, result) => {
50-
/* some code here */
51-
});
43+
scrape(options, (error, result) => {});
5244
```
5345

5446
## options

0 commit comments

Comments
 (0)