bringhome

2.0.2 • Public • Published

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]

Releases

Changelog

Readme

Keywords

Package Sidebar

Install

npm i bringhome

Weekly Downloads

0

Version

2.0.2

License

BSD-3-Clause

Unpacked Size

62.3 kB

Total Files

13

Last publish

Collaborators

  • papandreou