capturejs

## Installation

npm install capturejs
4 downloads in the last day
22 downloads in the last week
49 downloads in the last month

Capturejs

Installation

$ brew install phantomjs
$ npm install -g capturejs

Usage

Usage: capturejs [options]
URI
    -u, --uri <value> (required)
Output Image File
    -o, --output <value> (required)
CSS Selector
    -s, --selector <value>
UserAgent
    -A, --user-agent <value>
Inject external script code on Web page
    -J, --javascript-file <value>
ViewPortSize {width}x{height}
    -V, --viewportsize <value>
Cookies File
    -c, --cookies-file <value>
HTTP Timeout (ms)
    -T, --timeout <value>

Quick Start

$ capturejs --uri http://tiqav.com/ \
            --selector 'header .wrapper' \
            --output tiqav_header.png

tiqav_header.png

$ capturejs --uri http://tiqav.com/ \
            --selector 'header .wrapper' \
            --javascript-file tiqav_hide_logo.js \
            --output tiqav_header.png
// tiqav_hide_logo.js
document.querySelector("#logo").style.visibility = "hidden";

tiqav_header_hide_logo.png

Copyright (c) 2012 Kazuki Suda. See LICENSE.txt for further details.

npm loves you