UNPKG

nodulator

Version:

Complete NodeJS Framework for Restfull APIs

12 lines (10 loc) 275 B
exports.isatty = function isatty() { return true; }; exports.getWindowSize = function getWindowSize() { if ('innerHeight' in global) { return [global.innerHeight, global.innerWidth]; } // In a Web Worker, the DOM Window is not available. return [640, 480]; };