{"author":{"name":"Amir Raminfar","email":"findamir@gmail.com"},"name":"phantom","description":"PhantomJS integration module for NodeJS","homepage":"https://github.com/amir20/phantomjs-node","version":"2.0.0-alpha","repository":{"type":"git","url":"git://github.com/amir20/phantomjs-node.git"},"contributors":[{"name":"Amir Raminfar","email":"findamir@gmail.com"}],"keywords":["phantom","phantomjs","driver"],"main":"lib/index.js","engines":{"node":">=v0.8.0"},"dependencies":{"linerstream":"^0.1.4","phantomjs-prebuilt":"^2.1.4","winston":"^2.1.1"},"devDependencies":{"babel-cli":"^6.5.1","babel-preset-es2015":"^6.5.0","del":"^2.2.0","gulp":"^3.9.1","gulp-babel":"^6.1.2","gulp-jasmine":"^2.2.1"},"license":"ISC","scripts":{"test":"gulp test","prepublish":"gulp build"},"gitHead":"8d56e83cc829dbabb3ef0783d039dfa04d382d36","bugs":{"url":"https://github.com/amir20/phantomjs-node/issues"},"_id":"phantom@2.0.0-alpha","_shasum":"3b6817206a2636751060da90279fa1058a6289b2","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.6.0","_npmUser":{"name":"amir20","email":"findamir@gmail.com"},"maintainers":[{"name":"sgentle","email":"sam@samgentle.com"},{"name":"amir20","email":"findamir@gmail.com"}],"dist":{"shasum":"3b6817206a2636751060da90279fa1058a6289b2","tarball":"http://registry-npm.ywwl.com/phantom/download/phantom-2.0.0-alpha.tgz","integrity":"sha512-tNi4XnG1u9uiI1xQWpASKRgTZcF38Njo18WZ5XPiuJwjCh8Rj7Kpjyf3G3dWXxV/Jiec1bF5jkaOHf7d/QU8jA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFquGBbfzCg1q0pNmRYU2GJOxeRtR3SHAmPmiUTCtJJRAiEA41+1jNB+3v2BBbA0sYpL/hd/XX87lJ3/HKIApYwlEEU="}],"size":5765,"noattachment":false,"key":"/phantom/-/phantom-2.0.0-alpha.tgz"},"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/phantom-2.0.0-alpha.tgz_1455388638961_0.3646812413353473"},"directories":{},"readme":"phantom - Fast NodeJS API for PhantomJS\n========\n[![NPM](https://nodei.co/npm/phantom.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/phantom/)\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Linux Build][travis-image]][travis-url]\n[![Node Version][node-image]][node-url]\n\n\n## Super easy to use\n```js\nconst phantom = require('phantom');\n\n(async function() {\n  const instance = await phantom.create();\n  const page = await instance.createPage();\n  await page.on('onResourceRequested', function(requestData) {\n    console.info('Requesting', requestData.url);\n  });\n\n  const status = await page.open('https://stackoverflow.com/');\n  const content = await page.property('content');\n  console.log(content);\n\n  await instance.exit();\n})();\n\n```\n\nUsing Node v7.9.0+ you can run the above example with `node file.js`\n\nSee [examples](examples) folder for more ways to use this module.\n\n## Use it with npx\nYou can quickly test any website with phantomjs-node without needing to install the package.\n\n```\n$ npx phantom@latest https://stackoverflow.com/\n```\n\nThe above command is very useful to test if your website works on older browsers. I frequently use it to ensure [polyfills](https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills) have been installed correctly. \n\n## Deprecation warnings of PhantomJs\nIn March 2018, the owner of PhantomJS [announced](https://phantomjs.org/) suspension of development. There hasn't been any updates since. Since phantomjs-node is only a wrapper around phantomjs, then you should use it at your own risk because the underlying dependency is no longer supported. I plan to maintain this project until usage has dropped significantly.  \n\n## Installation\n\n### Node v6.x and later\nLatest version of phantom does **require Node v6.x and later**. You can install with\n```bash\n$ npm install phantom --save\n```\n\n### Node v5.x\nTo use version 3.x you need to have at least Node v5+. You can install it using\n\n```bash\n$ npm install phantom@3 --save\n```\n\n### Versions _older_ than 5.x, install with\n\n```bash\n$ npm install phantom@2 --save\n```\n\n## Documents\n- [in website](http://amirraminfar.com/phantomjs-node/#/)\n- [in github](./docs/)\n\n## Pooling\n\nCreating new phantom instances with `phantom.create()` can be slow. If\nyou are frequently creating new instances and destroying them, as a\nresult of HTTP requests for example, it might be worth creating a pool\nof instances that are re-used.\n\nSee the [phantom-pool](https://github.com/blockai/phantom-pool) module\nfor more info.\n\n## Tests\n\n  To run the test suite, first install the dependencies, then run `npm test`:\n\n```bash\n$ npm install\n$ npm test\n```\n\n## Contributing\n\n  This package is under development. Pull requests are welcomed. Please make sure tests are added for new functionalities and that your build does pass in TravisCI.\n\n## People\n\n  The current lead maintainer is [Amir Raminfar](https://github.com/amir20)\n\n  [List of all contributors](https://github.com/amir20/phantomjs-node/graphs/contributors)\n\n## License\n\n  [ISC](LICENSE.md)\n\n[npm-image]: https://img.shields.io/npm/v/phantom.svg?style=for-the-badge\n[npm-url]: https://npmjs.org/package/phantom\n[downloads-image]: https://img.shields.io/npm/dm/phantom.svg?style=for-the-badge\n[downloads-url]: https://npmjs.org/package/phantom\n[travis-image]: https://img.shields.io/travis/amir20/phantomjs-node.svg?style=for-the-badge\n[travis-url]: https://travis-ci.org/amir20/phantomjs-node\n[dependencies-image]: https://dependencyci.com/github/amir20/phantomjs-node/badge?style=for-the-badge\n[dependencies-url]: https://dependencyci.com/github/amir20/phantomjs-node\n[node-image]: https://img.shields.io/node/v/phantom.svg?style=for-the-badge\n[node-url]: https://nodejs.org/en/download/\n[codecov-image]: https://codecov.io/gh/amir20/phantomjs-node/branch/master/graph/badge.svg?style=for-the-badge\n[codecov-url]: https://codecov.io/gh/amir20/phantomjs-node\n","publish_time":1455388642107,"_cnpm_publish_time":1455388642107,"dist-tags":{"latest":"6.3.0"}}