SingleFile can be launched from the command line by running it into a (headless) browser.
It supports:
This is a work in progress.
PATH environment variable. Otherwise you will need to use the --browser-executable-path option to help SingleFile locating the executable.PATH environment variable.$ unzip master.zip .
cli directory.$ cd cli
$ npm install
single-file.js executable (Linux/Unix).$ chmod +x single-file.js
$ ./single-file.js --help (Linux/Unix)
> node single-file.js --help (Windows)
wikipedia.html$ ./single-file.js https://www.wikipedia.org wikipedia.html (Linux/Unix)
> node single-file.js https://www.wikipedia.org wikipedia.html (Windows)