{"_id":"capture","_rev":"19-0f8761fb72f3fb88c37331a3244be8e2","name":"capture","description":"Captures Screenshots using Phantom.js","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"capture","description":"Captures Screenshots using Phantom.js","version":"0.0.1","author":{"name":"Mike Moulton","email":"mike@meltmedia.com"},"dependencies":{"optimist":"0.3.x","async":"0.1.x","string":"1.1.x"},"devDependencies":{"mocha":"*","should":"*","wrench":"*"},"keywords":["capture","phantomjs","screenshot","web","website"],"repository":{"type":"git","url":"git://github.com/mmoulton/capture"},"main":"index","bin":{"capture":"index"},"scripts":{"test":"mocha"},"engines":{"node":">= 0.8.0"},"readme":"# Capture - Simple screenshot tool using PhantomJS\n\n## Install\n\n\tnpm install capture -g\n\n## Usage\n\n\tCapture screenshots of URLs.\n\tUsage: node ./index.js [url1, url2, ...]\n\n\tOptions:\n\t\t-v, --verbose     Verbose logging                            [boolean]\n\t\t-o, --out         Output directory for captured screenshots  [string]\n\t\t-s, --src         Read list of urls from JSON file           [string]\n\t\t-f, --format      Output image format (png, jpg, gif)        [string]  [default: \"png\"]\n\t\t-P, --phantomjs   Path to phantomjs bin                      [string]\n\t\t-u, --username    HTTP Basic Auth Username                   [string]\n\t\t-p, --password    HTTP Basic Auth Password                   [string]\n\t\t-d, --dimensions  Minimum viewport dimensions                [string]\n\n","readmeFilename":"README.md","_id":"capture@0.0.1","dist":{"shasum":"121459e4aebc8b81f5b2d7a89e1db2306ab52a45","tarball":"https://registry.npmjs.org/capture/-/capture-0.0.1.tgz","integrity":"sha512-7HZSMhDECZUdMR+1V/r5llZtJNCZH+WmuYYF0xv+x/kAYZnBUK4uQTC5Wi40hRUOBhUdRboY0i+JcwyYqhGRzQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID/KSr+zWC0picwOQt+tXJ/d10fjdhrfdu6CXHLbrBH2AiBhWZUhFGw3AxZvKaXMOq/u9Az184DXJwrJEKJ+hfdNUg=="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"mmoulton","email":"mike@meltmedia.com"},"maintainers":[{"name":"mmoulton","email":"mike@meltmedia.com"}]},"0.0.2":{"name":"capture","description":"Captures Screenshots using Phantom.js","version":"0.0.2","author":{"name":"Mike Moulton","email":"mike@meltmedia.com"},"dependencies":{"optimist":"0.3.x","async":"0.1.x","string":"1.1.x"},"devDependencies":{"mocha":"*","should":"*","wrench":"*"},"keywords":["capture","phantomjs","screenshot","web","website"],"repository":{"type":"git","url":"git://github.com/mmoulton/capture"},"main":"index","bin":{"capture":"./index.js"},"scripts":{"test":"mocha"},"engines":{"node":">= 0.8.0"},"readme":"# Capture - Simple screenshot tool using PhantomJS\n\n## Install\n\n\tnpm install capture -g\n\n## Usage\n\n\tCapture screenshots of URLs.\n\tUsage: node ./index.js [url1, url2, ...]\n\n\tOptions:\n\t\t-v, --verbose     Verbose logging                            [boolean]\n\t\t-o, --out         Output directory for captured screenshots  [string]\n\t\t-s, --src         Read list of urls from JSON file           [string]\n\t\t-f, --format      Output image format (png, jpg, gif)        [string]  [default: \"png\"]\n\t\t-P, --phantomjs   Path to phantomjs bin                      [string]\n\t\t-u, --username    HTTP Basic Auth Username                   [string]\n\t\t-p, --password    HTTP Basic Auth Password                   [string]\n\t\t-d, --dimensions  Minimum viewport dimensions                [string]\n\n","readmeFilename":"README.md","_id":"capture@0.0.2","dist":{"shasum":"3aa562c154205ad2484e9bd0e3115462d6aa53b0","tarball":"https://registry.npmjs.org/capture/-/capture-0.0.2.tgz","integrity":"sha512-BVww0NJSZF9pRTEpyh+Kmx+YQq1Vmzn6KogWOZLQzJjYpevFe2Yh3R+oN+XQrl03LROhPW2fv3T57CZrtoAssA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIS90x/KKhRn3o/EkpQ2rZSAeyQQmD0KAo0M0mp4G//gIgKIHjxaTUoFh0hjhToOVGFdvI9xO/y6OjiEZwo6XQQlM="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"mmoulton","email":"mike@meltmedia.com"},"maintainers":[{"name":"mmoulton","email":"mike@meltmedia.com"}]},"0.0.3":{"name":"capture","description":"Captures Screenshots using Phantom.js","version":"0.0.3","author":{"name":"Mike Moulton","email":"mike@meltmedia.com"},"dependencies":{"optimist":"0.3.x","async":"0.1.x","string":"1.1.x"},"devDependencies":{"mocha":"*","should":"*","wrench":"*"},"keywords":["capture","phantomjs","screenshot","web","website"],"repository":{"type":"git","url":"git://github.com/mmoulton/capture"},"main":"index","bin":{"capture":"./index.js"},"scripts":{"test":"mocha"},"engines":{"node":">= 0.8.0"},"readme":"# Capture - Simple screenshot tool using PhantomJS\n\n## Install\n\n\tnpm install capture -g\n\n## Usage\n\n\tCapture screenshots of URLs.\n\tUsage: node ./index.js [url1, url2, ...]\n\n\tOptions:\n\t\t-v, --verbose     Verbose logging                            [boolean]\n\t\t-o, --out         Output directory for captured screenshots  [string]\n\t\t-s, --src         Read list of urls from JSON file           [string]\n\t\t-f, --format      Output image format (png, jpg, gif)        [string]  [default: \"png\"]\n\t\t-P, --phantomjs   Path to phantomjs bin                      [string]\n\t\t-u, --username    HTTP Basic Auth Username                   [string]\n\t\t-p, --password    HTTP Basic Auth Password                   [string]\n\t\t-d, --dimensions  Minimum viewport dimensions                [string]\n\n","readmeFilename":"README.md","_id":"capture@0.0.3","dist":{"shasum":"6727a740452b3382a152532e476efaf82fe2f836","tarball":"https://registry.npmjs.org/capture/-/capture-0.0.3.tgz","integrity":"sha512-I59yJtzCSSOAmVrln4TPrmpnEP7X+JYpMpJbIRfLnvxPNbolONqNgd8yKkESrbMAubkueOCrGh8rgvpnSKx6HA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDqrO+EFXLIKC8rMWFIGNSNdZfdZ4PKNNuJ6zpXmkkoEAiBDwrVcJnI5KYMOWGuCFw22pYW3znnywYSZapkMh6d02w=="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"mmoulton","email":"mike@meltmedia.com"},"maintainers":[{"name":"mmoulton","email":"mike@meltmedia.com"}]},"0.0.4":{"name":"capture","description":"Captures Screenshots using Phantom.js","version":"0.0.4","author":{"name":"Mike Moulton","email":"mike@meltmedia.com"},"dependencies":{"optimist":"0.3.x","async":"0.1.x","string":"1.1.x"},"devDependencies":{"mocha":"*","should":"*","wrench":"*"},"keywords":["capture","phantomjs","screenshot","web","website"],"repository":{"type":"git","url":"git://github.com/mmoulton/capture"},"main":"index","bin":{"capture":"./index.js"},"scripts":{"test":"mocha"},"engines":{"node":">= 0.8.0"},"readme":"# Capture - Simple screenshot tool using PhantomJS\n\n## Install\n\n\tnpm install capture -g\n\n## Usage\n\n\tCapture screenshots of URLs.\n\tUsage: node ./index.js [url1, url2, ...]\n\n\tOptions:\n\t\t-v, --verbose     Verbose logging                            [boolean]\n\t\t-o, --out         Output directory for captured screenshots  [string]\n\t\t-s, --src         Read list of urls from JSON file           [string]\n\t\t-f, --format      Output image format (png, jpg, gif)        [string]  [default: \"png\"]\n\t\t-P, --phantomjs   Path to phantomjs bin                      [string]\n\t\t-u, --username    HTTP Basic Auth Username                   [string]\n\t\t-p, --password    HTTP Basic Auth Password                   [string]\n\t\t-d, --dimensions  Minimum viewport dimensions                [string]\n\n","readmeFilename":"README.md","_id":"capture@0.0.4","dist":{"shasum":"2ee8afc87a8ae7f568852d7fbb4c447076b477c1","tarball":"https://registry.npmjs.org/capture/-/capture-0.0.4.tgz","integrity":"sha512-2tgk2lWDNcmx3vGL4kLK85YmdVMepaS1vSxIHawyOVpB8QLT5D6Rbtpx/RklJVhH85num9KGvXkJM2SpxADRPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD573Gte4NNieCYf24cZ9tZNmGWgh+Flml3v9UF81dEKgIhAOySS4JH1rrtYWNXmjXgSpAn3kT8WccosMGBTrBcPa6+"}]},"_npmVersion":"1.1.65","_npmUser":{"name":"mmoulton","email":"mike@meltmedia.com"},"maintainers":[{"name":"mmoulton","email":"mike@meltmedia.com"}]},"0.0.5":{"name":"capture","description":"Captures Screenshots using Phantom.js","version":"0.0.5","author":{"name":"Mike Moulton","email":"mike@meltmedia.com"},"dependencies":{"optimist":"0.3.x","async":"0.1.x","string":"1.1.x"},"devDependencies":{"mocha":"*","should":"*","wrench":"*"},"keywords":["capture","phantomjs","screenshot","web","website"],"repository":{"type":"git","url":"git://github.com/mmoulton/capture"},"main":"index","bin":{"capture":"./index.js"},"scripts":{"test":"mocha"},"engines":{"node":">= 0.8.0"},"readme":"# Capture - Simple screenshot tool using PhantomJS [![Build Status](https://travis-ci.org/mmoulton/capture.png)](https://travis-ci.org/mmoulton/capture)\n\nCapture, as it's name implies, will capture a screenshot of one or more URL's using [PhantomJS](http://phantomjs.org). The format of the screenshot can be anything supported by Phantom, such as PNG, GIF, JPG, or PDF.\n\nCapture is a Node.js based library that can be used as a module within another application, or as a stand alone tool via it's command line interface (CLI).\n\n## Install\n\nTo install capture you must first have Node.js, NPM and PhantomJS installed, all of which is outside the scope of these instructions. Please see the [Node.js Website](http://nodejs.org) for details on how to install Node and NPM. Personaly I am found of Tim Caswell's excelent [NVM](https://github.com/creationix/nvm) tool for insalling and managing Node. [Homebrew](http://mxcl.github.com/homebrew/) is also an excelent tool for installing PhantomJS, Node or NPM on a Mac.\n\nOnce NPM is installed, simply install Capture by executing the following from the command line:\n\n\tnpm install capture -g\n\n\n## Command Line Usage\n\nOnce installed, you can explore what capture can do by simply typing `capture` into the command line. You will get the built in help that looks something like this:\n\n\tCapture screenshots of URLs.\n\tUsage: capture [url1 url2 ...]\n\n\tOptions:\n\t\t-v, --verbose     Verbose logging                            [boolean]\n\t\t-o, --out         Output directory for captured screenshots  [string]\n\t\t-f, --format      Output image format (png, jpg, gif)        [string]  [default: \"png\"]\n\t\t-P, --phantomjs   Path to phantomjs bin                      [string]\n\t\t-u, --username    HTTP Basic Auth Username                   [string]\n\t\t-p, --password    HTTP Basic Auth Password                   [string]\n\t\t-d, --dimensions  Minimum viewport dimensions                [string]\n\t\t-h, --help        Show this help message and exit            [boolean]\n\nExecuting `capture http://your-domain.com/ http://your-domain.com/about/` will create a directory in the current working directory with the following structure:\n\n\tyour-domain-com/\n\t\tindex.png\n\t\tabout/\n\t\t\tindex.png\n\n### Reading JSON from *stdin*\n\nCapture also supports reading in JSON from *stdin*. It will do it's best to find URL's within the data structure. For example, all of the following data structures are valid input:\n\n**Array of strings:**\n\n\tcapture << EOF\n\t[ \"http://your-domain.com\" ]\n\tEOF\n\n**Array of Objects with property of *url*:**\n\n\tcapture << EOF\n\t[ { \"url\": \"http://your-domain.com\" } ]\n\tEOF\n\n**Object with property of *url*:**\n\n\tcapture << EOF\n\t{ \"url\": \"http://your-domain.com\" }\n\tEOF\n\n## Example Use Cases\n\nCapture was writen to aid in regression testing of websites where large cross-cutting changes to things such as CSS were made and we wished to understand the visual differences that might exist between an existing version of a site and the newly modified version. To accomplish this, Capture, coupled with [Crawl](http://github.com/mmoulton/crawl) allows us to take screenshots of both the old and new versions of the site, then perform image differencing on the results. One handy tool for performing the image differencing is a Mac app called [Kaleidoscope](http://www.kaleidoscopeapp.com).\n\n## The MIT License\n\nCopyright (c) Mike Moulton\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md","_id":"capture@0.0.5","dist":{"shasum":"cb09ef1027896c95e4ef84de87ea5d69d8b20344","tarball":"https://registry.npmjs.org/capture/-/capture-0.0.5.tgz","integrity":"sha512-f7stXoSGO0XBPCrEwF3GSSNJmqtB3F92EBZwlo8sqhqqTzubnZXUEQHFMFDnn0ibIGeJrF2qn7InCm/SGUyvhw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIANKl4VMsN1HQlZ1PKrErl44akBOBArz4sExAoxhvDD1AiALa/oC8yaDHYMwfFqdaJm43rYuLiCvPbFzHyDt6QkXLQ=="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"mmoulton","email":"mike@meltmedia.com"},"maintainers":[{"name":"mmoulton","email":"mike@meltmedia.com"}]},"0.1.0":{"name":"capture","description":"Captures Screenshots using Phantom.js","version":"0.1.0","author":{"name":"Mike Moulton","email":"mike@meltmedia.com"},"dependencies":{"optimist":"0.3.x","async":"0.1.x","string":"1.1.x"},"devDependencies":{"mocha":"*","should":"*","wrench":"*"},"keywords":["capture","phantomjs","screenshot","web","website"],"repository":{"type":"git","url":"git://github.com/mmoulton/capture"},"main":"index","bin":{"capture":"./index.js"},"scripts":{"test":"mocha"},"engines":{"node":">= 0.8.0"},"readme":"# Capture - Simple screenshot tool using PhantomJS [![Build Status](https://travis-ci.org/mmoulton/capture.png)](https://travis-ci.org/mmoulton/capture)\n\nCapture, as it's name implies, will capture a screenshot of one or more URL's using [PhantomJS](http://phantomjs.org). The format of the screenshot can be anything supported by Phantom, such as PNG, GIF, JPG, or PDF.\n\nCapture is a Node.js based library that can be used as a module within another application, or as a stand alone tool via it's command line interface (CLI).\n\n## Install\n\nTo install capture you must first have Node.js, NPM and PhantomJS installed, all of which is outside the scope of these instructions. Please see the [Node.js Website](http://nodejs.org) for details on how to install Node and NPM. Personaly I am found of Tim Caswell's excelent [NVM](https://github.com/creationix/nvm) tool for insalling and managing Node. [Homebrew](http://mxcl.github.com/homebrew/) is also an excelent tool for installing PhantomJS, Node or NPM on a Mac.\n\nOnce NPM is installed, simply install Capture by executing the following from the command line:\n\n\tnpm install capture -g\n\n\n## Command Line Usage\n\nOnce installed, you can explore what capture can do by simply typing `capture` into the command line. You will get the built in help that looks something like this:\n\n\tCapture screenshots of URLs.\n\tUsage: node ./index.js [url1 url2 ...]\n\t\n\tOptions:\n\t  --verbose, -v              Verbose logging                                     [boolean]\n\t  --out, -o                  Output directory for captured screenshots           [string]\n\t  --format, -f               Output image format (png, jpg, gif, pdf)            [string]  [default: \"png\"]\n\t  --phantomjs, -P            Path to phantomjs bin                               [string]\n\t  --username, -u             HTTP Basic Auth Username                            [string]\n\t  --password, -p             HTTP Basic Auth Password                            [string]\n\t  --viewport-width, --vw     Minimum viewport width                              [string]  [default: 1024]\n\t  --viewport-height, --vh    Minimum viewport height                             [string]  [default: 768]\n\t  --paper-format, --pf       Size of the individual PDF pages (A4, letter)       [string]  [default: \"A4\"]\n\t  --paper-orientation, --po  Orientation of the PDF pages (portrait, landscape)  [string]  [default: \"portrait\"]\n\t  --paper-margin, --pm       Margin of the PDF pages (2cm, 5mm, etc.)            [string]  [default: \"2.5mm\"]\n\t  --help, -h                 Show this help message and exit                     [boolean]\n\nExecuting `capture http://your-domain.com/ http://your-domain.com/about/` will create a directory in the current working directory with the following structure:\n\n\tyour-domain-com/\n\t\tindex.png\n\t\tabout/\n\t\t\tindex.png\n\n### Reading JSON from *stdin*\n\nCapture also supports reading in JSON from *stdin*. It will do it's best to find URL's within the data structure. For example, all of the following data structures are valid input:\n\n**Array of strings:**\n\n\tcapture << EOF\n\t[ \"http://your-domain.com\" ]\n\tEOF\n\n**Array of Objects with property of *url*:**\n\n\tcapture << EOF\n\t[ { \"url\": \"http://your-domain.com\" } ]\n\tEOF\n\n**Object with property of *url*:**\n\n\tcapture << EOF\n\t{ \"url\": \"http://your-domain.com\" }\n\tEOF\n\n## Example Use Cases\n\nCapture was written to aid in regression testing of websites where large cross-cutting changes to things such as CSS were made and we wished to understand the visual differences that might exist between an existing version of a site and the newly modified version. To accomplish this, Capture, coupled with [Crawl](http://github.com/mmoulton/crawl) allows us to take screenshots of both the old and new versions of the site, then perform image differencing on the results. One handy tool for performing the image differencing is a Mac app called [Kaleidoscope](http://www.kaleidoscopeapp.com).\n\n\n## The MIT License\n\nCopyright (c) Mike Moulton\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md","_id":"capture@0.1.0","dist":{"shasum":"57310481f4839dc6e4d12e1ca6315c4f44902e5b","tarball":"https://registry.npmjs.org/capture/-/capture-0.1.0.tgz","integrity":"sha512-TeBaYSJqnKAn1krFCA/3ZHWLJ0YmG8Wz9dUA55qfn4NoToSPyupfryGllIVCdogF5owJcsR3UujSLRLxxlxZRQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICXycze6PghU6w51FTlei2+wmQ1EmfPaYAqhkx2t7TEOAiEAngHoxQPA5rGTK3wfWd6YakdwQ4Akl13zJgr9+Ey14GQ="}]},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"mmoulton","email":"mike@meltmedia.com"},"maintainers":[{"name":"mmoulton","email":"mike@meltmedia.com"}]}},"readme":"# Capture - Simple screenshot tool using PhantomJS\n\n## Install\n\n\tnpm install capture -g\n\n## Usage\n\n\tCapture screenshots of URLs.\n\tUsage: node ./index.js [url1, url2, ...]\n\n\tOptions:\n\t\t-v, --verbose     Verbose logging                            [boolean]\n\t\t-o, --out         Output directory for captured screenshots  [string]\n\t\t-s, --src         Read list of urls from JSON file           [string]\n\t\t-f, --format      Output image format (png, jpg, gif)        [string]  [default: \"png\"]\n\t\t-P, --phantomjs   Path to phantomjs bin                      [string]\n\t\t-u, --username    HTTP Basic Auth Username                   [string]\n\t\t-p, --password    HTTP Basic Auth Password                   [string]\n\t\t-d, --dimensions  Minimum viewport dimensions                [string]\n\n","maintainers":[{"name":"mmoulton","email":"mike@meltmedia.com"}],"time":{"modified":"2022-06-13T05:35:45.591Z","created":"2013-01-09T23:28:50.761Z","0.0.1":"2013-01-09T23:28:52.920Z","0.0.2":"2013-01-09T23:33:48.608Z","0.0.3":"2013-01-09T23:56:39.053Z","0.0.4":"2013-01-14T07:49:31.917Z","0.0.5":"2013-01-24T07:52:47.660Z","0.1.0":"2013-04-09T17:42:30.708Z"},"author":{"name":"Mike Moulton","email":"mike@meltmedia.com"},"repository":{"type":"git","url":"git://github.com/mmoulton/capture"},"users":{"n370":true,"truongcuong90":true,"terence3295":true,"caudill":true}}