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)
- Host: GitHub
- URL: https://github.com/demsking/wgetpage
- Owner: demsking
- License: mit
- Created: 2016-05-11T10:40:49.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-09-07T01:50:40.000Z (almost 9 years ago)
- Last Synced: 2024-05-22T20:23:19.335Z (about 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.