Detailansicht verbessert
This commit is contained in:
8
express-server/node_modules/widest-line/index.js
generated
vendored
Normal file
8
express-server/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