wallet-core/node_modules/widest-line/index.js

6 lines
153 B
JavaScript
Raw Normal View History

2017-05-28 00:38:50 +02:00
'use strict';
2017-12-27 19:33:54 +01:00
const stringWidth = require('string-width');
2017-05-28 00:38:50 +02:00
2017-12-27 19:33:54 +01:00
module.exports = input => Math.max.apply(null, input.split('\n').map(x => stringWidth(x)));
2017-05-28 00:38:50 +02:00