{"name":"phantomjs","version":"2.1.3-deprecated","keywords":["phantomjs","headless","webkit"],"description":"Headless WebKit with JS API","homepage":"https://github.com/Medium/phantomjs","repository":{"type":"git","url":"git://github.com/Medium/phantomjs.git"},"license":"Apache-2.0","author":{"name":"Dan Pupius","email":"dan@obvious.com","url":"http://pupius.co.uk"},"maintainers":[{"name":"dpup","email":"dan@pupi.us"},{"name":"nicks","email":"nicholas.j.santos@gmail.com"},{"name":"medium","email":"npm@medium.com"}],"main":"lib/phantomjs","bin":{"phantomjs":"./bin/phantomjs"},"scripts":{"install":"node install.js","test":"nodeunit --reporter=minimal test/tests.js && eslint install.js"},"dependencies":{"adm-zip":"~0.4.7","fs-extra":"~0.26.4","kew":"~0.7.0","md5":"~2.0.0","progress":"~1.1.8","request":"~2.67.0","request-progress":"~2.0.1","which":"~1.2.2"},"devDependencies":{"eslint":"1.10.3","nodeunit":"0.9.1"},"gitHead":"282f70a5cc6194f7548ba33b4ba3272672779cd4","bugs":{"url":"https://github.com/Medium/phantomjs/issues"},"_id":"phantomjs@2.1.3-deprecated","_shasum":"7fbb14b7603f6c87d04568aac917d4b71d20e679","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"nicks","email":"nicholas.j.santos@gmail.com"},"dist":{"shasum":"7fbb14b7603f6c87d04568aac917d4b71d20e679","tarball":"http://registry-npm.ywwl.com/phantomjs/download/phantomjs-2.1.3-deprecated.tgz","integrity":"sha512-FfHN2Hhk71iT7pgOKFmQG6QO4Jy6fchw00JnXPebVIaOLpv6QOrg+YrInpfr0XoOeDVvhonpNJ8z9v1cM9zQqA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTLBibXSjQxnKyPT7Q1/G1HmYzopb8rbe3gM/D+yufKwIgb8+0O0Kz6Tv7Em9u6XXtF4KznSjBfZqLDfbHR6z+B00="}],"size":14836,"noattachment":false,"key":"/phantomjs/-/phantomjs-2.1.3-deprecated.tgz"},"directories":{},"readme":"phantomjs\n==================\n\nAn NPM installer for [PhantomJS](http://phantomjs.org/), headless webkit with JS API.\n\n### DEPRECATED\n\n**Pre-2.0, this package was published to NPM as [phantomjs](https://www.npmjs.com/package/phantomjs).\nWe changed the name to [phantomjs-prebuilt](https://www.npmjs.com/package/phantomjs-prebuilt) at\nthe request of PhantomJS team.**\n\n**Please update your package references from `phantomjs` to `phantomjs-prebuilt`**\n\n[![Build Status](https://travis-ci.org/Medium/phantomjs.svg?branch=master)](https://travis-ci.org/Medium/phantomjs)\n\nBuilding and Installing\n-----------------------\n\n```shell\nnpm install phantomjs\n```\n\nOr grab the source and\n\n```shell\nnode ./install.js\n```\n\nWhat this installer is really doing is just grabbing a particular \"blessed\" (by\nthis module) version of Phantom. As new versions of Phantom are released\nand vetted, this module will be updated accordingly.\n\nRunning\n-------\n\n```shell\nbin/phantomjs [phantom arguments]\n```\n\nAnd npm will install a link to the binary in `node_modules/.bin` as\nit is wont to do.\n\nRunning via node\n----------------\n\nThe package exports a `path` string that contains the path to the\nphantomjs binary/executable.\n\nBelow is an example of using this package via node.\n\n```javascript\nvar path = require('path')\nvar childProcess = require('child_process')\nvar phantomjs = require('phantomjs')\nvar binPath = phantomjs.path\n\nvar childArgs = [\n  path.join(__dirname, 'phantomjs-script.js'),\n  'some other argument (passed to phantomjs script)'\n]\n\nchildProcess.execFile(binPath, childArgs, function(err, stdout, stderr) {\n  // handle results\n})\n\n```\n\nVersioning\n----------\n\nThe major and minor number tracks the version of PhantomJS that will be\ninstalled. The patch number is incremented when there is either an installer\nupdate or a patch build of the phantom binary.\n\nPre-2.0, this package was published to NPM as [phantomjs](https://www.npmjs.com/package/phantomjs).\nWe changed the name to [phantomjs-prebuilt](https://www.npmjs.com/package/phantomjs-prebuilt) at\nthe request of PhantomJS team.\n\nDeciding Where To Get PhantomJS\n-------------------------------\n\nBy default, this package will download phantomjs from our [releases](https://github.com/Medium/phantomjs/releases/).\nThis should work fine for most people.\n\n##### Downloading from a custom URL\n\nIf github is down, or the Great Firewall is blocking github, you may need to use\na different download mirror. To set a mirror, set npm config property `phantomjs_cdnurl`.\n\nAlternatives include `https://bitbucket.org/ariya/phantomjs/downloads` (the official download site)\nand `http://cnpmjs.org/downloads`.\n\n```Shell\nnpm install phantomjs --phantomjs_cdnurl=https://bitbucket.org/ariya/phantomjs/downloads\n```\n\nOr add property into your `.npmrc` file (https://www.npmjs.org/doc/files/npmrc.html)\n\n```\nphantomjs_cdnurl=https://bitbucket.org/ariya/phantomjs/downloads\n```\n\nAnother option is to use PATH variable `PHANTOMJS_CDNURL`.\n```shell\nPHANTOMJS_CDNURL=https://bitbucket.org/ariya/phantomjs/downloads npm install phantomjs\n```\n\n##### Using PhantomJS from disk\n\nIf you plan to install phantomjs many times on a single machine, you can\ninstall the `phantomjs` binary on PATH. The installer will automatically detect\nand use that for non-global installs.\n\nCross-Platform Repositories\n---------------------------\n\nPhantomJS needs to be compiled separately for each platform. This installer\nfinds a prebuilt binary for your operating system, and downloads it.\n\nIf you check your dependencies into git, and work on a cross-platform\nteam, then you need to tell NPM to rebuild any platform-specific dependencies. Run\n\n```shell\nnpm rebuild\n```\n\nas part of your build process. This problem is not specific to PhantomJS, and this\nsolution will work for any NodeJS package with native or platform-specific code.\n\nIf you know in advance that you want to install PhantomJS for a specific architecture,\nyou can set the environment variables: `PHANTOMJS_PLATFORM`\n(to set target platform) and `PHANTOMJS_ARCH` (to set target\narch), where `platform` and `arch` are valid values for\n[process.platform and process.arch](https://nodejs.org/api/process.html).\n\nA Note on PhantomJS\n-------------------\n\nPhantomJS is not a library for NodeJS.  It's a separate environment and code\nwritten for node is unlikely to be compatible.  In particular PhantomJS does\nnot expose a Common JS package loader.\n\nThis is an _NPM wrapper_ and can be used to conveniently make Phantom available\nIt is not a Node JS wrapper.\n\nI have had reasonable experiences writing standalone Phantom scripts which I\nthen drive from within a node program by spawning phantom in a child process.\n\nRead the PhantomJS FAQ for more details: http://phantomjs.org/faq.html\n\n### Linux Note\n\nAn extra note on Linux usage, from the PhantomJS download page:\n\n > There is no requirement to install Qt, WebKit, or any other libraries. It\n > however still relies on Fontconfig (the package fontconfig or libfontconfig,\n > depending on the distribution).\n\nTroubleshooting\n---------------\n\n##### Installation fails with `spawn ENOENT`\n\nThis is NPM's way of telling you that it was not able to start a process. It usually means:\n\n- `node` is not on your PATH, or otherwise not correctly installed.\n- `tar` is not on your PATH. This package expects `tar` on your PATH on Linux-based platforms.\n\nCheck your specific error message for more information.\n\n##### Installation fails with `Error: EPERM` or `operation not permitted` or `permission denied`\n\nThis error means that NPM was not able to install phantomjs to the file system. There are three\nmajor reasons why this could happen:\n\n- You don't have write access to the installation directory.\n- The permissions in the NPM cache got messed up, and you need to run `npm cache clean` to fix them.\n- You have over-zealous anti-virus software installed, and it's blocking file system writes.\n\n##### Installation fails with `Error: read ECONNRESET` or `Error: connect ETIMEDOUT`\n\nThis error means that something went wrong with your internet connection, and the installer\nwas not able to download the PhantomJS binary for your platform. Please try again.\n\n##### I tried again, but I get `ECONNRESET` or `ETIMEDOUT` consistently.\n\nDo you live in China, or a country with an authoritarian government? We've seen problems where\nthe GFW or local ISP blocks github, preventing the installer from downloading the binary.\n\nTry visiting [the download page](https://bitbucket.org/ariya/phantomjs/downloads) manually.\nIf that page is blocked, you can try using a different CDN with the `PHANTOMJS_CDNURL`\nenv variable described above.\n\n##### I am behind a corporate proxy that uses self-signed SSL certificates to intercept encrypted traffic.\n\nYou can tell NPM and the PhantomJS installer to skip validation of ssl keys with NPM's \n[strict-ssl](https://www.npmjs.org/doc/misc/npm-config.html#strict-ssl) setting:\n\n```\nnpm set strict-ssl false\n```\n\nWARNING: Turning off `strict-ssl` leaves you vulnerable to attackers reading\nyour encrypted traffic, so run this at your own risk!\n\n##### I tried everything, but my network is b0rked. What do I do?\n\nIf you install PhantomJS manually, and put it on PATH, the installer will try to\nuse the manually-installed binaries.\n\n##### I'm on Debian or Ubuntu, and the installer failed because it couldn't find `node`\n\nSome Linux distros tried to rename `node` to `nodejs` due to a package\nconflict. This is a non-portable change, and we do not try to support this. The\n[official documentation](https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#ubuntu-mint-elementary-os)\nrecommends that you run `apt-get install nodejs-legacy` to symlink `node` to `nodejs` \non those platforms, or many NodeJS programs won't work properly.\n\nContributing\n------------\n\nQuestions, comments, bug reports, and pull requests are all welcome.  Submit them at\n[the project on GitHub](https://github.com/Medium/phantomjs/).  If you haven't contributed to an\n[Medium](http://github.com/Medium/) project before please head over to the\n[Open Source Project](https://github.com/Medium/open-source#note-to-external-contributors) and fill\nout an OCLA (it should be pretty painless).\n\nBug reports that include steps-to-reproduce (including code) are the\nbest. Even better, make them in the form of pull requests.\n\nAuthor\n------\n\n[Dan Pupius](https://github.com/dpup)\n([personal website](http://pupius.co.uk)) and\n[Nick Santos](https://github.com/nicks), supported by\n[A Medium Corporation](http://medium.com/).\n\nLicense\n-------\n\nCopyright 2012 [A Medium Corporation](http://medium.com/).\n\nLicensed under the Apache License, Version 2.0.\nSee the top-level file `LICENSE.txt` and\n(http://www.apache.org/licenses/LICENSE-2.0).\n","publish_time":1453956016968,"_cnpm_publish_time":1453956016968,"dist-tags":{"latest":"2.1.7","latest-1.9.8":"1.9.20"}}