inliner/docs/usage.txt
Remy Sharp 6e46680fbd feat: support plain HTML as a source
Supports both HTML being passed as the first argument to the inliner function (through various detection), but also on the CLI supports HTML being piped, via `cat foo | inliner`.

Fixes #66
Closes #73
2015-11-26 10:24:12 +00:00

30 lines
933 B
Plaintext

Usage:
$ inliner [flags] url-or-filename
Inliner also supports HTML being piped and will inline from STDIN.
Flags:
-n, --nocompress don't compress CSS or HTML - useful for debugging
-i, --noimages don't encode images - keeps files size small, but more requests
-o, --videos encode videos (and their poster image) - disabled by default
-s, --nosvg don't compress SVG (through SVGO)
-v, --verbose echo on STDERR the progress of inlining
-V, --version output the version number
-h, --help output usage information
Options:
-e, --encoding override encoding detection
Examples:
$ inliner -v https://twitter.com > twitter.html
$ inliner -ni local-file.html > local-file.min.html
$ inliner -e windows-1253 http://foofootos.gr > foofootos-utf8.html
$ cat local-file.html | inliner
For more details see http://github.com/remy/inliner/