npm install -g collapsify
An HTTP server is installed as
collapsify-server, which collapses the URL passed to “/?url=”.
This HTTP server is systemd-aware: when running as a systemd service, collapsify will listen on the socket passed.
Otherwise, this server defaults to listening on port 8020, which can be changed via the “-p” flag.
Additional options can by found via the built in usage information,
var collapsify = ;;
The “collapsify” function takes the URL to collapse, as well as an object of options, and returns a promise that resolves to a Buffer.
Of these, “logger” is required.