Skip to content
Download a web page to a local directory
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.editorconfig
.eslintignore
.eslintrc
.gitignore
.npmrc
.prettierrc
.travis.yml
LICENSE
README.md
package.json

README.md

bringhome

wget/Save page as-like tool for downloading a web page and its assets to a local directory, rewriting its internal references to relative urls.

Installation

npm install -g bringhome

Usage

bringhome https://example.com/ -o localdir

Options:
  --help            Show help                                  [boolean]
  --version         Show version number                        [boolean]
  --output, -o      Directory where results should be written to (or
                    file in --self-contained mode)   [string] [required]
  --header, -H      Specify a custom header and value to pass when
                    retrieving assets, eg. -H 'Foo: bar'. Can be
                    repeated                       [array] [default: []]
  --recursive, -r   Crawl all HTML-pages linked with relative and root
                    relative links. This stays inside your domain
                                              [boolean] [default: false]
  --pretty          Pretty print downloaded assets
                                              [boolean] [default: false]
  --omit-scripts    Leave out JavaScript      [boolean] [default: false]
  --self-contained  Inline all assets, producing a single,
                    self-contained "archive" HTML file. Alters the
                    meaning of the --output switch so it specifies the
                    desired location of the file
                                              [boolean] [default: false]
  --silent, -s      Do not write anything to stdout
                                              [boolean] [default: false]
You can’t perform that action at this time.