Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
webshot-cli
Advanced tools
Readme
Easy website screenshots in CLI.
This software is a wrapper around the Webshot library, providing a simple command to take local or remote webpage screenshots.
Usage: webshot [--custom-header=<header>]... [options] [<url>] [<dest>]
Arguments:
<url> A webpage URL (can be a local file) [default: -].
<dest> Where to save the image [default: -].
Options:
-h, --help Show this help.
--version Show version.
--window-size=<size> Browser window size [default: 1024/768].
--shot-size=<size> The area to capture [default: window/window].
--shot-offset=<offset> Left, right, top and bottom offset [default: 0/0/0/0].
--phantom-path=<path> The location of PhantomJS [default: phantomjs].
--custom-header=<header> Additional header (can be set multiple times).
--default-white-background White background if no background is set.
--custom-css=<css> Custom CSS rules.
--quality=<quality> JPEG compression quality [default: 75].
--stream-type=<type> Streaming file type [default: png].
--render-delay=<delay> Number of milliseconds to wait [default: 0].
--timeout=<timeout> Kill PhantomJS after this number of milliseconds [default: 0].
--shot-callback Wait for `window.callPhantom('takeShot');`.
--http-error Cause an error if HTTP status is not 200.
See <https://github.com/brenden/node-webshot> for options details.
All options beginning with `--p:` like `--p:cookies-path` are passed
to PhantomJS. See <http://phantomjs.org/api/command-line.html>.
The main difference with the Webshot library is you don't have to give
an absolute file://
URL to capture a local file with working assets.
The software will resolve it for you.
Standard I/O screenshot:
webshot < example.html > example.png
webshot --quality=100 --stream-type=jpeg < example.html > example.jpeg
Shot an URL:
webshot example.html example.png
webshot 'https://www.npmjs.org/' npmjs.png
For example.html
, the difference with the I/O version is the relative
assets will be loaded properly.
--p:
prefix, if it's an
unknown option for PhantomJS, PhantomJS will crash but no error is
returned. I believe it's more a bug with Webshot (or maybe PhantomJS
does nothing but don't return an error code).FAQs
> Easy website screenshots in CLI.
The npm package webshot-cli receives a total of 15 weekly downloads. As such, webshot-cli popularity was classified as not popular.
We found that webshot-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.