All Versions
8
Latest Version
Avg Release Cycle
159 days
Latest Release
1658 days ago
Changelog History
Changelog History
-
v1.1.1 Changes
September 06, 2020๐ Fixes a bug where the processed lines were not actually being delimited with newlines on output.
-
v1.1.0 Changes
November 22, 2019Recent changes have greatly reduced the allocations used by the library when padding each field of the flat data input.
-
v1.0.0 Changes
November 15, 2019- โ Removes an unused interface and commentary referencing it.
- โ Removes some extraneous logic when defaults were already defined.
- Some slight renaming and unexporting of underlying reader/writer which didn't need to be exported.
It's been 2 years. Going with a
v1.0.0
. -
v0.5 Changes
September 10, 2017- โ Add a
Pad
count toPaddingOpts
in order to choose the amount of whitespace around the separator. - Create the
-p
flag to the CLI for this padding option
- โ Add a
-
v0.4 Changes
September 06, 2017๐ฆ Converted package to a lib and exposed the appropriate methods to create the public API thanks to @briandowns !
The CLI now lives in a subdirectory
/cmd
-
v0.3 Changes
September 01, 2017Provides a new flag,
-i
which allows the user to specify the justification for particular columns.- 1 or more columns can have such an override specified
- The
-i
flag is NOT required
0๏ธโฃ Example (default justification of
left
with column overrides for field 1 and 4):
cat file.csv | align -i 1:right,4:center
- ๐ Minor updates to documentation
-
v0.2 Changes
August 22, 2017- #57 revealed a bug for proper padding with certain international characters
- ๐ vendored a dependency which fixes the count of the string width properly
-
v0.1 Changes
August 21, 2017๐ Features
- align text by a specified delimiter / separator
- specify a different output delimiter
- 0๏ธโฃ specify an input file or pipe to
stdin
(default) - 0๏ธโฃ specify an output file or write to
stdout
(default) - filter the fields outputted by column number
- left, center, or right justification
- escape the delimiter in a text field with a text qualifier option