UNPKG

vike

Version:

The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.

8 lines (7 loc) 384 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTerminalWidth = getTerminalWidth; function getTerminalWidth() { // https://stackoverflow.com/questions/30335637/get-width-of-terminal-in-node-js/30335724#30335724 return ((typeof process !== 'undefined' && typeof process.stdout !== 'undefined' && process.stdout.columns) || undefined); }