Linux cambridge2.uknoc5.com 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
LiteSpeed
Server IP : 92.48.92.37 & Your IP : 13.59.219.166
Domains :
Cant Read [ /etc/named.conf ]
User : drazizulhaq
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-12-16 14:12
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
# term-size [![Build Status: Linux & macOS](https://travis-ci.org/sindresorhus/term-size.svg?branch=master)](https://travis-ci.org/sindresorhus/term-size) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/c3tydg6uedsk0bob/branch/master?svg=true)](https://ci.appveyor.com/project/sindresorhus/term-size/branch/master) > Reliably get the terminal window size Because [`process.stdout.columns`](https://nodejs.org/api/tty.html#tty_writestream_columns) doesn't exist when run [non-interactively](http://www.tldp.org/LDP/abs/html/intandnonint.html), for example, in a child process or when piped. This module even works when all the TTY file descriptors are redirected! Confirmed working on macOS, Linux, and Windows. ## Install ``` $ npm install --save term-size ``` ## Usage ```js const termSize = require('term-size'); termSize(); //=> {columns: 143, rows: 24} ``` ## API ### termSize() Returns an `Object` with `columns` and `rows` properties. ## Related - [term-size-cli](https://github.com/sindresorhus/term-size-cli) - CLI for this module ## License MIT © [Sindre Sorhus](https://sindresorhus.com)