{"library":"cli-width","type":"library","category":null,"description":"cli-width is a JavaScript utility for Node.js environments that accurately determines the current width of the stdout window. It employs a robust fallback mechanism, checking `tty` information, `output.columns` property, a custom `CLI_WIDTH` environment variable, and finally a configurable default width. The package is currently stable at version 4.1.0 and is actively maintained, with releases occurring as needed for bug fixes or minor enhancements. It is designed to be lightweight and provides TypeScript types out-of-the-box, making it suitable for modern Node.js projects that require responsive command-line interfaces. Its primary differentiator is the comprehensive fallback strategy to ensure a width is always returned.","language":"javascript","status":"active","version":"4.1.0","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install cli-width","imports":["import cliWidth from 'cli-width';","const cliWidth = require('cli-width');","import type { Options } from 'cli-width';"]},{"cmd":"yarn add cli-width","imports":[]},{"cmd":"pnpm add cli-width","imports":[]}],"homepage":null,"github":"https://github.com/knownasilya/cli-width","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/cli-width","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/cli-width/compatibility"}}