Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cli-columns

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-columns - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

10

package.json
{
"name": "cli-columns",
"version": "3.1.0",
"version": "3.1.1",
"description": "Columnated lists for the CLI.",

@@ -37,7 +37,7 @@ "scripts": {

"devDependencies": {
"ava": "^0.18.1",
"ava": "^0.19.1",
"chalk": "^1.1.3",
"coveralls": "^2.11.16",
"nyc": "^10.1.2",
"xo": "^0.17.1"
"coveralls": "^2.13.1",
"nyc": "^11.0.2",
"xo": "^0.18.2"
},

@@ -44,0 +44,0 @@ "engines": {

@@ -6,8 +6,8 @@ import test from 'ava';

test('should print one column list', async t => {
var cols = columns(['foo', ['bar', 'baz'], ['bar', 'qux']], {
test('should print one column list', t => {
const cols = columns(['foo', ['bar', 'baz'], ['bar', 'qux']], {
width: 1
});
var expected =
const expected =
'bar\n' +

@@ -22,8 +22,8 @@ 'bar\n' +

test('should print three column list', async t => {
var cols = columns(['foo', ['bar', 'baz'], ['bat', 'qux']], {
test('should print three column list', t => {
const cols = columns(['foo', ['bar', 'baz'], ['bat', 'qux']], {
width: 16
});
var expected =
const expected =
'bar baz qux \n' +

@@ -35,4 +35,4 @@ 'bat foo ';

test('should print complex list', async t => {
var cols = columns(
test('should print complex list', t => {
const cols = columns(
[

@@ -51,3 +51,3 @@ 'foo', 'bar', 'baz',

var expected =
const expected =
'apple bar durian star fruit \n' +

@@ -60,4 +60,4 @@ 'apricot baz foo 嶜憃撊 噾噿嚁 \n' +

test('should optionally not sort', async t => {
var cols = columns(
test('should optionally not sort', t => {
const cols = columns(
[

@@ -77,3 +77,3 @@ 'foo', 'bar', 'baz',

var expected =
const expected =
'foo 嶜憃撊 噾噿嚁 pomegranate apricot \n' +

@@ -80,0 +80,0 @@ 'bar blueberry durian banana pineapple \n' +

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc