Page Loader is an open-source console tool for downloading page with its resources.
Features:
- You can choose output directory
- Debug support
- Downloads only local resources
This project was created as part of the Hexlet curriculum.
What I learned from this project:
- Promises
- Testing with Jest (mocking http requests and handle fs tests)
- Errors handling in async code
- Node.js version 16.x
- Clone the repository
git clone git@github.com:aleksandrtamrazov/backend-project-lvl3.git
- Install dependencies
cd backend-project-lvl3
make install
- Install project
npm ci
Usage: page-loader [options] <url>
Page loader utility
Options:
-V, --version output the version number
-o, --output [dir] output dir (default: "/home/user/current-dir")
-h, --help display help for command