left-align
Left align text to a column
Install
$ npm install --save left-align
Usage
const leftAlign = ; let leftAligned = ; //=> One Two Three Four// Two Three Four Five// Three Four Five Six
API
leftAlign(lines)
Returns a string
of the table.
lines
Type: Array(Array(String))
This needs to be a valid 2D array. Every index in the Array
should be an Array
, and that Array
should contain string
s respectively.
Inspiration
I made this because I needed a simple left aligned columned table without a 20 configuration lines, and I couldn't find it. 😕
License
MIT © Lukasz Brodowski