Get the visual width of the widest line in a array of strings - the number of columns required to display it
🏠 Homepage
npm install
const widestString = require('widest-string');
console.log(widestString([
'Hello',
'Hello World',
'Hello\nWorld'
])) // 11, because 'Hello World' has 11 symols
npm run test
👤 Grigorii Horos
- Github: @horosgrisa
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Copyright © 2019 Grigorii Horos.
This project is GPL-3.0-or-later licensed.
This README was generated with ❤️ by readme-md-generator