First Commit
This commit is contained in:
commit
601e886c14
2123 files changed
+334815
No files matched your search
+8
@@ -0,0 +1,8 @@
|
||||
'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;
|
||||
};
|
||||
Reference in new issue
Block a user