• Stars
    star
    111
  • Rank 314,510 (Top 7 %)
  • Language
    JavaScript
  • Created almost 10 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

phantom driver for x-ray.

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

More Repositories

1

bare-auth

Bare Auth is a ready-to-deploy stateless authentication server.
JavaScript
337
star
2

enroute

tiny functional router
JavaScript
99
star
3

rube

A composable data validation, transformation & manipulation pipeline
JavaScript
55
star
4

100-ways-to-die

An exploration into zero-downtime node servers
JavaScript
49
star
5

redux-debug

debug() as redux middleware
JavaScript
45
star
6

react-route

Simple, tiny router for React.
JavaScript
45
star
7

blog

Our blog
39
star
8

layout.css

Wrapper around flexbox to make doing flexbox layouts simple and declarative
CSS
34
star
9

ive

Validate your forms in the browser and the form data on the server using the same schemas.
JavaScript
33
star
10

oauth-open

minimal popup for authenticating with oauth
JavaScript
29
star
11

kr

Simple express-like router for koa and roo.
JavaScript
23
star
12

invalid

Validate an object against a schema. This is the schema validation library you actually wanted.
JavaScript
22
star
13

envenc

Seamlessly encrypt and decrypt your development keys in your .env
JavaScript
22
star
14

x-ray-select

The selection parser for x-ray. Aiming to bring structure to the web.
JavaScript
20
star
15

send-to-slack

Simple way to send messages to slack. Works on both the client and server.
JavaScript
19
star
16

page-pipe

pass pages through a pluggable pipeline to extract information from them.
JavaScript
14
star
17

leveldb-repl

Super simple REPL for leveldb
JavaScript
14
star
18

stroll

asynchronously & recursively walk through an object, array or literal.
JavaScript
13
star
19

tiny-directed-graph

Little directed graph with backlink support.
JavaScript
11
star
20

docker-compose-watch

simple build/restart service for docker containers when the filesystem changes
Shell
11
star
21

browserify-markdown

Browserify transform for markdown files
JavaScript
10
star
22

send-form

Simply send form data synchronously using javascript
JavaScript
8
star
23

jsepgen

Tiny module (15 LOC) to generate code from the jsep AST.
JavaScript
8
star
24

ws

Simple Pusher-like clone.
JavaScript
7
star
25

kev

Plugin-based universal key-value storage API.
JavaScript
7
star
26

co-leveldb

leveldb for node 0.11.x with conditional generator support
JavaScript
7
star
27

catch-stdout

Catch stdout (useful for testing)
JavaScript
7
star
28

request-once

Combines multiple asynchronous requests into one thenable
JavaScript
7
star
29

prok

Run multiple processes, simply.
JavaScript
6
star
30

facebook-oauth-agent

Bare bones, low-level agent for authenticating with Facebook's oAuth.
JavaScript
6
star
31

winston-leveldb

LevelDB transport for winston logging library
JavaScript
6
star
32

superagent-pool

automatic request pooling for superagent
JavaScript
6
star
33

webpack-www-bundle

Webpack asset pipeline for finbox.io and beyond
CSS
5
star
34

twitter-oauth-agent

Bare bones, low-level agent for authenticating with Twitter's oAuth.
JavaScript
5
star
35

slack-history

Get the full slack history of a channel or group
JavaScript
5
star
36

http-context

High-level request & response object. Inspired by Koa's context.
JavaScript
5
star
37

rube-schema

Validate schemas. Works in the browser and on the server. Powered by rube.
JavaScript
5
star
38

google-oauth-agent

Bare bones, low-level agent for authenticating with Google's oAuth.
JavaScript
5
star
39

yurt

Yurt: an Ideal Database Client (WIP)
5
star
40

khaos-react

A Khaos template to start new react.js projects quickly.
JavaScript
4
star
41

accessorize

Simple access function for getting and setting properties.
JavaScript
4
star
42

static

Intentionally Static: This page will never change.
HTML
4
star
43

www-bundle

Opinionated asset pipeline for the koa front-end servers
JavaScript
4
star
44

allogator

Switch logging services on and off in any project by simply setting environment variables
JavaScript
3
star
45

bare-auth-google

Google authentication with Bare Auth.
JavaScript
3
star
46

page-pipe-server

Example implementation of a page-pipe server
JavaScript
3
star
47

linkedin-oauth-agent

Bare bones, low-level agent for authenticating with LinkedIn's oAuth.
JavaScript
3
star
48

validate-form

form validations
JavaScript
3
star
49

superagent-trace

JavaScript
2
star
50

bare-auth-facebook

Facebook authentication with Bare Auth.
JavaScript
2
star
51

kev-mongo

MongoDB adapter for Kev
JavaScript
2
star
52

is-mobile-browser

detect it the user-agent is mobile
JavaScript
2
star
53

http-outgoing

A pinned version of Node's internal Response object. Useful for proper mocking.
JavaScript
2
star
54

bare-auth-linkedin

LinkedIn authentication with Bare Auth.
JavaScript
2
star
55

winston-chains

Chain winston loggers for cascading messages into multiple transport groups.
JavaScript
2
star
56

prok-wait

Command line utility that blocks until a port is available. Useful for managing dependent processes.
JavaScript
2
star
57

kev-redis

redis adapter for kev
JavaScript
2
star
58

nl

Convert linebreaks into newline characters (\n)
JavaScript
2
star
59

http-incoming

A pinned version of Node's internal Request object. Useful for proper mocking
JavaScript
2
star
60

status-checker

check website and rebuild if necessary
JavaScript
1
star
61

levered-returns-logo

Levered Returns logo
CSS
1
star
62

bare-auth-twitter

Twitter authentication with Bare Auth.
JavaScript
1
star
63

ifttt.lapwinglabs.com

Our ifttt workhorse.
JavaScript
1
star