Here is introduced a cli-app which loads a page with all its content to a dedicated folder and replaces corresponded links on local ones.
- Node 21 is installed.
git clone https://github.com/drgoodness/fullstack-javascript-project-4.git
npm ci
npm linkStart an app. For example:
$ page-loader -h
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