Files
rpiRadio/ProjectNow/NodeServer/node_modules/widest-line/index.js
2018-05-19 02:20:19 +02:00

6 lines
153 B
JavaScript

'use strict';
const stringWidth = require('string-width');
module.exports = input => Math.max.apply(null, input.split('\n').map(x => stringWidth(x)));