x-ray-phantom

1.0.1 • Public • Published

x-ray-phantom

phantom driver for x-ray.

Installation

npm install x-ray-phantom

Usage

var phantom = require('x-ray-phantom');
var Xray = require('x-ray');
 
var x = Xray()
  .driver(phantom());
 
x('http://google.com', 'title')(function(err, str) {
  if (err) return done(err);
  assert.equal('Google', str);
  done();
})

API

phantom([options|fn], [fn])

Initialize the phantom driver with options being passed to Nightmare and an optional custom fn with the signature function(nightmare, done).

Test

npm install
make test

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2
  • 1.0.0
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i x-ray-phantom

Weekly Downloads

2

Version

1.0.1

License

none

Last publish

Collaborators

  • mattmueller