/
usr
/
local
/
lib
/
node_modules
/
nodemon
/
node_modules
/
widest-line
/
/usr/local/lib/node_modules/nodemon/node_modules/widest-line
mkdir
upload
Name
Size
Mode
Actions
index.d.ts
490
0644
edit
dl
rm
index.js
322
0644
edit
dl
rm
license
1109
0644
edit
dl
rm
package.json
2029
0644
edit
dl
rm
readme.md
914
0644
edit
dl
rm
Edit:
/usr/local/lib/node_modules/nodemon/node_modules/widest-line/index.js
(322B)
'use strict'; const stringWidth = require('string-width'); const widestLine = input => { let max = 0; for (const line of input.split('\n')) { max = Math.max(max, stringWidth(line)); } return max; }; module.exports = widestLine; // TODO: remove this in the next major version module.exports.default = widestLine;
Save
cmd:
run