Comparing version 0.2.0 to 0.2.1
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6981
83