{"bugs":{"url":"https://github.com/sebv/node-phantomjs-sync/issues"},"dist":{"shasum":"3ec85c03a44cd39a6b6ac6ceedb7a8275535bca2","tarball":"https://registry.npmjs.org/phantom-sync/-/phantom-sync-1.1.0.tgz","integrity":"sha512-TDziayurHetrvbtk2HJFyJycqihocahp6FsFHZtRS7VxE9OTCLTZ5kpIGdEFL0s5zPYj3kjjAttel7Y+yJIdQw==","signatures":[{"sig":"MEYCIQCl66IoLZXMhIGcN93pn+NPXf13beQnFnBh7OJulpNaRQIhAMLaADaM8c5q7RhXZCVOuIMqxttgmsux8gWsge0RtqD7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./index","name":"phantom-sync","_from":".","author":{"name":"Seb Vincent","email":"seb.vincent@gmail.com"},"engine":"node >= 0.6.1","readme":"# node-phantomjs-sync [![Build Status](https://secure.travis-ci.org/sebv/node-phantomjs-sync.png?branch=master)](http://travis-ci.org/sebv/node-phantomjs-sync)\n\nNote: API change in version 1.0.0, see section below.\n\nThis is a synchronous version of the [phantom for node](http://github.com/sgentle/phantomjs-node) \nmodule using [fibers](http://github.com/laverdet/node-fibers). \n\n## install\n\n```\nnpm install phantom-sync\n```\n\n## upgrade to V1\n\nThe main changes are the following:\n\n- 1/ async and mixed mode options have been removed\n- 2/ require should be: `{phantom,sync} = require 'phantom-sync'`\n- 3/ no need to create a Phantom object\n\n## usage (coffeescript)\n\n```coffeescript\n{phantom,sync} = require 'phantom-sync'\n\nsync ->\n  ph = phantom.create()\n  page = ph.createPage()\n  status = page.open \"http://www.google.com\"\n  console.log \"status=\", status  \n  title = page.evaluate ->\n    document.title\n  console.log \"title=\", title\n  ph.exit()  \n```\n\n## API\n\nThis is the [phantom for node](http://github.com/sgentle/phantomjs-node) API where that callbacks have been transformed into returns. \nTherefore it should be very similar to the [PhantomJS API](http://code.google.com/p/phantomjs/wiki/Interface), \nexcept for the getters/setters function which need to be called like in the following code:\n\n```coffeescript\npage.set 'settings.loadImages', false\npage.get 'settings.loadImages'\n```\n","scripts":{"test":"cake test"},"_npmUser":{"name":"sebv","email":"seb.vincent@gmail.com"},"homepage":"https://github.com/sebv/node-phantomjs-sync","keywords":["phantom","phantomjs","sync","synchronous"],"repository":{"url":"git@github.com:sebv/node-phantomjs-sync.git","type":"git"},"_npmVersion":"1.3.12","description":"sync version of phantom","maintainers":[{"name":"sebv","email":"seb.vincent@gmail.com"}],"dependencies":{"phantom":"~0.5.4","make-sync":"~0.2.0"},"readmeFilename":"README.md","devDependencies":{"temp":"~0.6.0","mocha":"~1.13.0","should":"~2.0.2","express":"~3.4.3","ps-tree":"0.0.3","coffee-script":"~1.6.3","sv-cake-utils":"~0.1.8"},"_id":"phantom-sync@1.1.0","version":"1.1.0"}