1.0.0 ā€¢ Published 5 years ago

widest-string v1.0.0

Weekly downloads
4
License
GPL-3.0-or-later
Repository
github
Last release
5 years ago

Welcome to widest-string šŸ‘‹

Version Documentation Maintenance License: GPL-3.0 Downloads

Get the visual width of the widest line in a array of strings - the number of columns required to display it

šŸ  Homepage

Install

npm install

Usage

const widestString = require('widest-string');

console.log(widestString([
'Hello',
'Hello World',
'Hello\nWorld'
])) // 11, because 'Hello World' has 11 symols

Run tests

npm run test

Author

šŸ‘¤ Grigorii Horos

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page.

Show your support

Give a ā­ļø if this project helped you!

šŸ“ License

Copyright Ā© 2019 Grigorii Horos.

This project is GPL-3.0-or-later licensed.


This README was generated with ā¤ļø by readme-md-generator