cli-columns
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "cli-columns", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Columnated lists for the CLI.", | ||
@@ -43,2 +43,3 @@ "main": "src/cli-columns.js", | ||
"chalk": "^1.1.1", | ||
"coveralls": "^2.11.6", | ||
"nyc": "^5.6.0", | ||
@@ -45,0 +46,0 @@ "strip-ansi": "^3.0.0", |
@@ -18,7 +18,8 @@ # `cli-columns` | ||
var values = [ | ||
'foo', 'bar', 'baz', 'pear', | ||
'foo', 'bar', 'baz', | ||
chalk.cyan('嶜憃撊') + ' 噾噿嚁', | ||
'blue' + chalk.bgBlue('berry'), | ||
chalk.red('apple'), 'pomegranate', | ||
'durian', chalk.green('star fruit'), | ||
'apricot', 'banana pinapple' | ||
'apricot', 'banana pineapple' | ||
]; | ||
@@ -29,3 +30,3 @@ | ||
<img width="600" alt="screenshot 2016-02-13 21 39 01" src="https://cloud.githubusercontent.com/assets/155164/13031366/51659082-d29a-11e5-9ea4-c760717ddaa7.png" /> | ||
<img width="600" alt="screenshot" src="https://cloud.githubusercontent.com/assets/155164/13035272/ad76774a-d319-11e5-8e97-8d1f0722a771.png" /> | ||
@@ -55,3 +56,3 @@ ## API | ||
© 2016 Shannon Moeller <me@shannonmoeller.com> | ||
© Shannon Moeller <me@shannonmoeller.com> (shannonmoeller.com) | ||
@@ -58,0 +59,0 @@ Licensed under [MIT](http://shannonmoeller.com/mit.txt) |
@@ -8,7 +8,5 @@ import columns from '../src/cli-columns'; | ||
var cols = columns(['foo', ['bar', 'baz'], ['bat', 'qux']], { | ||
width: 2 | ||
width: 1 | ||
}); | ||
console.log(cols); | ||
var expected = | ||
@@ -29,4 +27,2 @@ 'bar\n' + | ||
console.log(cols); | ||
var expected = | ||
@@ -42,7 +38,8 @@ 'bar baz qux \n' + | ||
[ | ||
'foo', 'bar', 'baz', 'pear', | ||
'foo', 'bar', 'baz', | ||
chalk.cyan('嶜憃撊') + ' 噾噿嚁', | ||
'blue' + chalk.bgBlue('berry'), | ||
chalk.red('apple'), 'pomegranate', | ||
'durian', chalk.green('star fruit'), | ||
'apricot', 'banana pinapple' | ||
'apricot', 'banana pineapple' | ||
], | ||
@@ -54,10 +51,8 @@ { | ||
console.log(cols); | ||
var expected = | ||
'apple bar durian pomegranate \n' + | ||
'apricot baz foo star fruit \n' + | ||
'banana pinapple blueberry pear '; | ||
'apple bar durian star fruit \n' + | ||
'apricot baz foo 嶜憃撊 噾噿嚁 \n' + | ||
'banana pineapple blueberry pomegranate '; | ||
assert.is(stripAnsi(cols), expected); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6877
69
7
97