You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
monolith/README.md

35 lines
1.0 KiB
Markdown

7 years ago
# monolith
7 years ago
A data hoarder's dream come true: bundle any web page into a stand-alone HTML file.
7 years ago
Unlike conventional "Save page as …", `monolith` saves the target
document **and** embeds JavaScript, CSS and image assets **all at once**,
7 years ago
resulting in a single HTML5 document that is a joy to store and share.
7 years ago
Works both on remote and local targets.
7 years ago
If compared to saving websites with `wget -mpk`, `monolith` embeds all assets
as data-URIs and therefore would display the page exactly the same at any time,
not depending on the Internet connection.
7 years ago
However, keep in mind that `monolith` is not aware of your browser's session.
### Installation
$ sudo npm install -g git@github.com:Y2Z/monolith.git
### Usage
$ monolith https://github.com > github.html
7 years ago
or
$ monolith -q [local path]/index.html > mysite.html
7 years ago
<!-- or -->
<!-- cat local.html | monolith - > local.html -->
### Options
7 years ago
- `-u`: output the result as one big data-URI
- `-q`: be quiet
7 years ago
<!-- - `-a`: fix anchor href="" attributes for remote documents -->
### License
GPLv3