Socket
Socket
Sign inDemoInstall

pageres

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pageres - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

6

cli.js

@@ -53,4 +53,4 @@ #!/usr/bin/env node

var urls = _.uniq(args.filter(/./.test.bind(/\./)));
var sizes = _.uniq(args.filter(/./.test.bind(/^\d{3,4}x\d{3,4}$/i)))
var urls = _.uniq(args.filter(/./.test, /\./));
var sizes = _.uniq(args.filter(/./.test, /^\d{3,4}x\d{3,4}$/i));

@@ -64,3 +64,3 @@ if (urls.length === 0) {

console.log('No sizes specified. Falling back to the ten most popular screen resolutions according to w3counter as of January 2014:\n' + defRes);
sizes = defRes.split(',');
sizes = defRes.split(' ');
}

@@ -67,0 +67,0 @@

{
"name": "pageres",
"version": "0.2.0",
"version": "0.2.1",
"description": "Get screenshots of websites in different resolutions",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -22,2 +22,5 @@ # pageres [![Build Status](https://travis-ci.org/sindresorhus/pageres.png?branch=master)](https://travis-ci.org/sindresorhus/pageres)

*PhantomJS, which is used for generating the screenshots, is installed automagically, but in some [rare cases](https://github.com/Obvious/phantomjs/issues/102) it might fail to and you'll get an `Error: spawn EACCES` error. [Download](http://phantomjs.org/download.html) PhantomJS manually and reinstall pageres if that happens.*
### Usage

@@ -75,3 +78,3 @@

- Select all the resolutions and copy them into a new file and save it
- In your terminal run: `pageres website.com --file file-from-above-step.txt`
- In your terminal run: `pageres website.com < file-from-above-step.txt`

@@ -78,0 +81,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc