frontend/.pnpm-store/v3/files/58/beff73345327703466cb66a6d0a254deb48dd74ac20332a9b3361fbcba1ce7d14c7792a80a38cc00de9b7373493d62fc71722e866ab8300ad8f64fad6aad09

17 lines
322 B
Plaintext

'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;