- Move Astro files from dealplustech-astro/ to project root - Update Dockerfile: PORT environment variable (default 80) - Add vite.config.ts with allowedHosts: true - Matches nixpacks behavior for Easypanel deployment - No hardcoded ports or domains
12 lines
228 B
JavaScript
12 lines
228 B
JavaScript
import stringWidth from 'string-width';
|
|
|
|
export default function widestLine(string) {
|
|
let lineWidth = 0;
|
|
|
|
for (const line of string.split('\n')) {
|
|
lineWidth = Math.max(lineWidth, stringWidth(line));
|
|
}
|
|
|
|
return lineWidth;
|
|
}
|