@warriorjs/cli
Version:
WarriorJS command line
16 lines (14 loc) • 356 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
/**
* Returns the size of the screen.
*
* @returns {number[]} The size of the screen as an array of [width, height].
*/
function getScreenSize() {
return [process.stdout.columns, process.stdout.rows];
}
exports.default = getScreenSize;
module.exports = exports.default;
;