• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2const stringWidth = require('string-width');
3
4module.exports = input => {
5	let max = 0;
6	for (const s of input.split('\n')) max = Math.max(max, stringWidth(s));
7	return max;
8};
9