Check if current running context is PhantomJS.
Install
Via npm:$ npm install is-phantom --save
Via Bower:
$ bower install is-phantom --save
Usage
var isPhantom = require('is-phantom');
isPhantom(); // true
Check if current running context is PhantomJS.
$ npm install is-phantom --save
$ bower install is-phantom --save
var isPhantom = require('is-phantom');
isPhantom(); // true
Bytes is a JavaScript newsletter you'll actually enjoy reading.
Delivered every Monday, for free.