diff options
Diffstat (limited to 'deps/npm/node_modules/widest-line/index.js')
-rw-r--r-- | deps/npm/node_modules/widest-line/index.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/npm/node_modules/widest-line/index.js b/deps/npm/node_modules/widest-line/index.js new file mode 100644 index 0000000000..284a0251e4 --- /dev/null +++ b/deps/npm/node_modules/widest-line/index.js @@ -0,0 +1,4 @@ +'use strict'; +const stringWidth = require('string-width'); + +module.exports = input => Math.max.apply(null, input.split('\n').map(x => stringWidth(x))); |