mirror of
https://github.com/bvanroll/yahoo-thing.git
synced 2025-08-29 20:12:46 +00:00
euh
This commit is contained in:
8
node_modules/widest-line/index.js
generated
vendored
Normal file
8
node_modules/widest-line/index.js
generated
vendored
Normal file
@@ -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