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>
17 lines
322 B
JavaScript
17 lines
322 B
JavaScript
'use strict';
|
|
const stringWidth = require('string-width');
|
|
|
|
const widestLine = input => {
|
|
let max = 0;
|
|
|
|
for (const line of input.split('\n')) {
|
|
max = Math.max(max, stringWidth(line));
|
|
}
|
|
|
|
return max;
|
|
};
|
|
|
|
module.exports = widestLine;
|
|
// TODO: remove this in the next major version
|
|
module.exports.default = widestLine;
|