NPM wrapper for installing phantomjs
Switch branches/tags
Nothing to show
Pull request Compare This branch is 383 commits behind Medium:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


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.


bin/phantom [phantom arguments]

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


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.


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


Copyright 2012 The Obvious Corporation.

Licensed under the Apache License, Version 2.0. See the top-level file LICENSE.txt and (