Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 3.128.31.106
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
node_modules /
npm /
node_modules /
term-size /
Delete
Unzip
Name
Size
Permission
Date
Action
vendor
[ DIR ]
drwxr-xr-x
2024-03-03 22:36
index.js
1.73
KB
-rw-r--r--
2021-03-10 14:36
license
1.09
KB
-rw-r--r--
2021-03-10 14:36
package.json
1.62
KB
-rw-r--r--
2021-03-10 14:36
readme.md
1.11
KB
-rw-r--r--
2021-03-10 14:36
Save
Rename
'use strict'; const path = require('path'); const execa = require('execa'); const create = (columns, rows) => ({ columns: parseInt(columns, 10), rows: parseInt(rows, 10) }); module.exports = () => { const env = process.env; const stdout = process.stdout; const stderr = process.stderr; if (stdout && stdout.columns && stdout.rows) { return create(stdout.columns, stdout.rows); } if (stderr && stderr.columns && stderr.rows) { return create(stderr.columns, stderr.rows); } // These values are static, so not the first choice if (env.COLUMNS && env.LINES) { return create(env.COLUMNS, env.LINES); } if (process.platform === 'win32') { try { // Binary: https://github.com/sindresorhus/win-term-size const size = execa.sync(path.join(__dirname, 'vendor/windows/term-size.exe')).stdout.split(/\r?\n/); if (size.length === 2) { return create(size[0], size[1]); } } catch (err) {} } else { if (process.platform === 'darwin') { try { // Binary: https://github.com/sindresorhus/macos-term-size const size = execa.shellSync(path.join(__dirname, 'vendor/macos/term-size')).stdout.split(/\r?\n/); if (size.length === 2) { return create(size[0], size[1]); } } catch (err) {} } // `resize` is preferred as it works even when all file descriptors are redirected // https://linux.die.net/man/1/resize try { const size = execa.sync('resize', ['-u']).stdout.match(/\d+/g); if (size.length === 2) { return create(size[0], size[1]); } } catch (err) {} try { const columns = execa.sync('tput', ['cols']).stdout; const rows = execa.sync('tput', ['lines']).stdout; if (columns && rows) { return create(columns, rows); } } catch (err) {} } return create(80, 24); };