template-saas/apps/backend/node_modules/widest-line
rckrdmrd 26f0e52ca7 feat: Initial commit - template-saas
Template base para proyectos SaaS multi-tenant.

Estructura inicial:
- apps/backend (NestJS API)
- apps/frontend (React/Vite)
- apps/database (PostgreSQL DDL)
- docs/ (Documentación)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 04:41:24 -06:00
..
index.d.ts feat: Initial commit - template-saas 2026-01-07 04:41:24 -06:00
index.js feat: Initial commit - template-saas 2026-01-07 04:41:24 -06:00
license feat: Initial commit - template-saas 2026-01-07 04:41:24 -06:00
package.json feat: Initial commit - template-saas 2026-01-07 04:41:24 -06:00
readme.md feat: Initial commit - template-saas 2026-01-07 04:41:24 -06:00

widest-line Build Status

Get the visual width of the widest line in a string - the number of columns required to display it

Some Unicode characters are fullwidth and use double the normal width. ANSI escape codes are stripped and doesn't affect the width.

Useful to be able to know the maximum width a string will take up in the terminal.

Install

$ npm install widest-line

Usage

const widestLine = require('widest-line');

widestLine('古\n\u001B[1m@\u001B[22m');
//=> 2

License

MIT © Sindre Sorhus