format2
What
This lib is for formatting strings for the CLI. For example if you want to create a list shown in the advanced example.
Installation
It's available on npm.
$ npm install --save format2
Basic example
var format2 = ; ; Output:should replace # with "#" and two trailing spaces // Should cut the string and replace with only one hashtag; Output:#
Advanced example
var format2 = ;var formatting = '{0:3} | {0:25} | {0:25} | {0:25}'; console;console;console;console;
Contribution
Contributions are appreciated.
License
MIT-licensed. See LICENSE.