Skip to content

My project PageLoader is a command line utility that downloads pages from the internet and saves them to your computer. Together with the page, it downloads all the resources (pictures, styles and js) making it possible to open the page without the Internet.

Notifications You must be signed in to change notification settings

SergeiKiss/backend-project-4

Repository files navigation

Hexlet tests, my tests, CodeClimate tests - maintainability and test coverage:

Actions Status Node CI Maintainability Test Coverage

PageLoader

Project description
My project PageLoader is a command line utility that downloads pages from the internet and saves them to your computer. Together with the page, it downloads all the resources (pictures, styles and js) making it possible to open the page without the Internet. The utility downloads resources in parallel and shows the progress for each resource in the terminal

Stack: JavaScript, DOM(cheerio), AJAX(axios), jest and nock (testing), commander, listr

Setup

make install
npm link

Note: npm link may require sudo

Run this before use

page-loader -h

Examples

https://asciinema.org/a/601418 - load and save
https://asciinema.org/a/602137 - load with images
https://asciinema.org/a/602203 - load with images, links and scripts
https://asciinema.org/a/602692 - logging
https://asciinema.org/a/603155 - errors handling
https://asciinema.org/a/603355 - final result

About

My project PageLoader is a command line utility that downloads pages from the internet and saves them to your computer. Together with the page, it downloads all the resources (pictures, styles and js) making it possible to open the page without the Internet.

Resources

Stars

Watchers

Forks

Packages

No packages published