mirror of
https://github.com/bvanroll/yahoo-thing.git
synced 2025-08-29 12:02:48 +00:00
9 lines
191 B
JavaScript
9 lines
191 B
JavaScript
'use strict';
|
|
const stringWidth = require('string-width');
|
|
|
|
module.exports = input => {
|
|
let max = 0;
|
|
for (const s of input.split('\n')) max = Math.max(max, stringWidth(s));
|
|
return max;
|
|
};
|