monocle-isup
v0.0.1
Published
is-up module checks whether a website is up or down https://github.com/sindresorhus/is-up monocle-isup monoclize is-up
Downloads
5
Readme
monocle-isup
is-up module checks whether a website is up or down https://github.com/sindresorhus/is-up
monocle-isup monoclize is-up
Install
npm install --save monocle-isup
Example
Instead of calling is-up asynchroniously
var isUp = require('is-up');
isUp('sindresorhus.com', function (err, up) {
console.log(up);
//=> true
});
use monocle-isup inside your monocle project
var monocle = require('monocle-js'),
isUp = require("monocle-isup");
monocle.run(function*(){
var data = yield isUp('sindresorhus.com');
console.log(data);
// => true
});