An open API service indexing awesome lists of open source software.

https://github.com/demsking/wgetpage

Download an HTML document with all dependencies (css, js, image, html)
https://github.com/demsking/wgetpage

Last synced: 11 months ago
JSON representation

Download an HTML document with all dependencies (css, js, image, html)

Awesome Lists containing this project

README

          

# wgetpage
Download an HTML document with all dependencies (css, js, image, html)

## CLI

Install:

```sh
npm install -g wgetpage
```

Use:

```text
Usage: wgetpage
```

Example:

```sh
wgetpage http://example.com
```
## API

```
npm install --save wgetpage
```

Use:

```js
var wget = require('wgetpage');

wget(url, dest, done);
```

Example:

```js
var wget = require('wgetpage');

const URL = 'http://example.com';
const DEST = '/tmp/output';

wget(URL, DEST, function() {
console.log('done');
});
```
## License

This library is licensed under the MIT license.