UNPKG

is-computer-off

Version:

Want to know if your computer is off? This algorithm is proven to always return the correct result.

15 lines (11 loc) 293 B
/*! * is-computer-off <https://github.com/JPYamamoto/is-computer-off> * * Copyright (c) 2020, Juan Pablo Yamamoto. * Released under the MIT License. */ 'use strict'; var isComputerOn = require('is-computer-on'); module.exports = function isComputerOff() { return !isComputerOn(); };