Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
node-proshot
Advanced tools
Handy tool to capture website screenshots using Puppeteer.
$ npm install node-proshot
const proshot = require('node-proshot');
proshot.screenshot(URL, FILE_NAME_TO_SAVE, CONFIG);
The CONFIG
have following properties:
timeout
: duration to wait for AJAX loading to complete. Default to 5000 milliseconds.viewport {width, height}
: the viewport to take screenshot. Default: 1280x720.For examples:
proshot.screenshot('https://petehouston.com', 'petehouston.com.png', {
viewport: {
width: 1920,
height: 1080
},
timeout: 2000
});
proshot.screenshot('https://petehouston.com', 'petehouston.com.png', { timeout: 2000 });
proshot.screenshot('https://moso.com', 'moso.com.jpg');
proshot.multishot(URL_ARRAY, DIRECTORY_TO_SAVE, CONFIG);
URL_ARRAY
: the array of websites, should start with either http
or https
.DIRECTORY_TO_SAVE
: this should be the folder where screenshots are stored. Default: directory where script is executed.CONFIG
: have following properties:
viewport
: viewport to take screenshots. Default: 1280x720.timeout
: duration to wait for AJAX loading to complete. Default to 5000 milliseconds.extension
: image file types. It could be jpg
or png
.Examples:
proshot.multishot([
'https://petehouston.com',
'https://apple.com',
'https://youtube.com'
]);
proshot.multishot([
'https://petehouston.com',
'https://apple.com',
'https://youtube.com'
], '/home/petehouston/screenshots');
proshot.multishot([
'https://petehouston.com',
'https://apple.com',
'https://youtube.com'
], '/home/petehouston/screenshots', {
viewport: { width: 1920, height: 1080 },
timeout: 3000,
extension: 'jpg'
});
FAQs
Handy tool to capture website screenshots using Puppeteer.
The npm package node-proshot receives a total of 0 weekly downloads. As such, node-proshot popularity was classified as not popular.
We found that node-proshot 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.