Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
NPM wrapper for installing phantomjs
Branch: master
Pull request Compare This branch is 255 commits behind Medium:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
.gitignore
LICENSE.txt
README.md
install.js
package.json

README.md

phantom

An NPM wrapper for PhantomJS, headless webkit with JS API.

Building and Installing

npm install phantomjs

Or grab the source and

node ./install.js

What this is really doing is just grabbing a particular "blessed" (by this module) version of Phantom. As new versions of Phantom are released and vetted, this module will be updated accordingly.

NOTE: Currently this has only been set up to fetch and run Phantom for MacOS (darwin) and Linux based platforms (as identified by nodejs). If you want windows support, feel free to send a patch.

Running

bin/phantom [phantom arguments]

And npm will install a link to the binary in node_modules/.bin as it is wont to do.

Contributing

Questions, comments, bug reports, and pull requests are all welcome. Submit them at the project on GitHub.

Bug reports that include steps-to-reproduce (including code) are the best. Even better, make them in the form of pull requests.

Author

Dan Pupius (personal website), supported by The Obvious Corporation.

License

Copyright 2012 The Obvious Corporation.

Licensed under the Apache License, Version 2.0. See the top-level file LICENSE.txt and (http://www.apache.org/licenses/LICENSE-2.0).

Something went wrong with that request. Please try again.