projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Giant blob of minor changes
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
node_modules
/
coc-prettier
/
node_modules
/
widest-line
/
index.js
1
'use strict';
2
const stringWidth = require('string-width');
3
4
module.exports = input => {
5
let max = 0;
6
for (const s of input.split('\n')) max = Math.max(max, stringWidth(s));
7
return max;
8
};