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.
snapshot-stream
Advanced tools
Readme
Capture screenshot of a website and return it as a stream
$ npm install --save snapshot-stream
var fs = require('fs');
var screenshot = require('snapshot-stream');
var stream = screenshot('http://google.com', '1024x768', {crop: true});
stream.pipe(fs.createWriteStream('google.com-1024x768.png'));
Type: string
Add page to capture.
Type: string
Set viewport size.
Type: object
Define options to be used.
Type: boolean
Default: false
Crop to the set height.
Type: number
(seconds)
Default: 0
Delay capturing the screenshot. Useful when the site does things after load that you want to capture.
Type: string
Capture a specific DOM element.
Type: array
Hide an array of DOM elements.
Type: object
Default: {}
Set custom headers.
Type: array
or object
A string with the same format as a browser cookie or an object of what phantomjs.addCookie
accepts.
Type: string
Username for authenticating with HTTP auth.
Type: string
Password for authenticating with HTTP auth.
Type: string
Default: png
Set format to render the image as. Supported formats are png
and jpg
.
Type: number
Default: 1
Scale webpage n
times.
Type: string
Set a custom user agent.
Type: function
PhantomJS errors.
Type: function
Warnings with eg. page errors.
See the pageres CLI.
MIT © Kevin Mårtensson
FAQs
Capture screenshot of a website and return it as a stream
The npm package snapshot-stream receives a total of 15 weekly downloads. As such, snapshot-stream popularity was classified as not popular.
We found that snapshot-stream 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.