Security News
RubyGems.org Adds New Maintainer Role
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.
Get screenshots of the websites in different resolutions
A good way to make sure your websites are responsive.
It's speedy and generates 100 screenshots from 10 different websites in just over a minute.
npm install --global pageres
PhantomJS, which is used for generating the screenshots, is installed automagically, but in some rare cases it might fail to and you'll get an Error: spawn EACCES
error. Download PhantomJS manually and reinstall pageres if that happens.
$ pageres --help
Get screenshots of websites in different resolutions.
Specify urls and screen resolutions as arguments. Order doesn't matter.
Usage
pageres <url> <resolution> [<resolution> <url> ...]
pageres [<url> <resolution> ...] < <file>
cat <file> | pageres [<url> <resolution> ...]
Example
pageres todomvc.com yeoman.io 1366x768 1600x900
pageres 1366x768 < urls.txt
cat screen-resolutions.txt | pageres todomvc.com yeoman.io
You can also pipe in a newline separated list of urls and screen resolutions which will get merged with the arguments.
If no screen resolutions are specified it will fall back to the ten most popular ones according to w3counter.
npm install --save pageres
var pageres = require('pageres');
pageres(['todomvc.com'], ['1366x768', '1600x900'], function () {
console.log('done');
});
You can use the most popular resolutions for your site with pageres
by following these steps:
Audience
=> Technology
=> Browser & OS
Screen Resolution
link in the middle of the screenExport
button at the top, then Google Spreadsheets
, and select yes for importingpageres website.com < file-from-above-step.txt
MIT © Sindre Sorhus
FAQs
Capture website screenshots
The npm package pageres receives a total of 132 weekly downloads. As such, pageres popularity was classified as not popular.
We found that pageres demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
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.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.