var noface =var ph =phph
npm install noface
No-Face opens a WebSocket connection between Node.js and PhantomJS. The
src callback function is executed within PhantomJS on the socket
event, and receives the
The optional parameter
options contains any additional options to pass to
child_process.spawn. If you include an array
args in options, these will
be passed to the PhantomJS child.
By default, the PhantomJS child exits when the channel closes. Override
channel.onclose to change this behavior. The default error handler in
PhantomJS is also set to exit the process and emit an
error event in
The return value is a
open: The PhantomJS child has started and the WebSocket connection is established.
close: The WebSocket connection is closed. By default, the PhantomJS child will automatically exit.
message: The PhantomJS child sends a message. Receives a string or
error: Startup failed or the child did not exit cleanly. Receives an
send: Send a message to the PhantomJS child. Accepts a string or a
close: Close the WebSocket connection. By default, the PhantomJS child will automatically exit.
child: Contains the
channel: While the WebSocket channel is open, contains the
Hacking the code
git clone https://github.com/Two-Screen/noface.gitcd nofacenpm installnpm test