D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
lib
/
node_modules
/
npm
/
node_modules
/
widest-line
/
Filename :
index.js
back
Copy
'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; };