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

columnify

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

columnify - npm Package Compare versions

Comparing version 1.5.4 to 1.6.0

.github/workflows/test.yml

22

columnify.js

@@ -5,11 +5,10 @@ "use strict";

var _require = require('./utils');
var _require = require('./utils'),
padRight = _require.padRight,
padCenter = _require.padCenter,
padLeft = _require.padLeft,
splitIntoLines = _require.splitIntoLines,
splitLongWords = _require.splitLongWords,
truncateString = _require.truncateString;
var padRight = _require.padRight;
var padCenter = _require.padCenter;
var padLeft = _require.padLeft;
var splitIntoLines = _require.splitIntoLines;
var splitLongWords = _require.splitLongWords;
var truncateString = _require.truncateString;
var DEFAULT_HEADING_TRANSFORM = function DEFAULT_HEADING_TRANSFORM(key) {

@@ -37,4 +36,5 @@ return key.toUpperCase();

module.exports = function (items) {
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var columnConfigs = options.config || {};

@@ -249,5 +249,3 @@ delete options.config; // remove config so doesn't appear on every column.

function mixin() {
var _Object;
if (Object.assign) return (_Object = Object).assign.apply(_Object, arguments);
if (Object.assign) return Object.assign.apply(Object, arguments);
return ObjectAssign.apply(undefined, arguments);

@@ -254,0 +252,0 @@ }

{
"name": "columnify",
"version": "1.5.4",
"version": "1.6.0",
"description": "Render data in text columns. Supports in-column text-wrap.",

@@ -20,7 +20,6 @@ "main": "columnify.js",

"devDependencies": {
"babel": "^6.3.26",
"babel-cli": "^6.3.17",
"babel-cli": "^6.26.0",
"babel-preset-es2015": "^6.3.13",
"chalk": "^1.1.1",
"tap-spec": "^4.1.1",
"tap-spec": "^5.0.0",
"tape": "^4.4.0"

@@ -45,4 +44,7 @@ },

"homepage": "https://github.com/timoxley/columnify",
"engines": {
"node": ">=8.0.0"
},
"dependencies": {
"strip-ansi": "^3.0.0",
"strip-ansi": "^6.0.1",
"wcwidth": "^1.0.0"

@@ -49,0 +51,0 @@ },

# columnify
[![NPM](https://nodei.co/npm/columnify.png?downloads=true&downloadRank=true&stars=true&chrome)](https://nodei.co/npm-dl/columnify/)
[![NPM](https://nodei.co/npm-dl/columnify.png?months=3&height=3&chrome)](https://nodei.co/npm/columnify/)
[![Build Status](https://img.shields.io/travis/timoxley/columnify.svg?style=flat)](https://travis-ci.org/timoxley/columnify)
[![Columnify Unit Tests](https://github.com/timoxley/columnify/actions/workflows/test.yml/badge.svg)](https://github.com/timoxley/columnify/actions/workflows/test.yml)
[![NPM Version](https://img.shields.io/npm/v/columnify.svg?style=flat)](https://npmjs.org/package/columnify)
[![License](http://img.shields.io/npm/l/columnify.svg?style=flat)](LICENSE)
[![Dependency Status](https://david-dm.org/timoxley/columnify.svg)](https://david-dm.org/timoxley/columnify)
[![devDependency Status](https://david-dm.org/timoxley/columnify/dev-status.svg)](https://david-dm.org/timoxley/columnify#info=devDependencies)

@@ -25,6 +20,6 @@ Create text-based columns suitable for console output from objects or

## Installation & Update
## Installation
```
$ npm install --save columnify@latest
$ npm install columnify
```

@@ -383,3 +378,3 @@

### Transforming Column Data and Headers
If you need to modify the presentation of column content or heading content there are two useful options for doing that: `dataTransform` and `headerTransform`. Both of these take a function and need to return a valid string.
If you need to modify the presentation of column content or heading content there are two useful options for doing that: `dataTransform` and `headingTransform`. Both of these take a function and need to return a valid string.

@@ -397,2 +392,5 @@ ```javascript

},
headingTransform: function(heading) {
return heading.toLowerCase()
},
config: {

@@ -410,3 +408,3 @@ name: {

```
*MODULE NAME* DESCRIPTION
*MODULE NAME* description
mod1 some description text.

@@ -457,15 +455,22 @@ module-two some slightly longer description text.

project : columnify
repo age : 1 year, 2 months
active : 32 days
commits : 120
files : 54
repo age : 8 years
active : 47 days
commits : 180
files : 57
authors :
90 Tim Oxley 75.0%
8 Tim 6.7%
7 Arjun Mehta 5.8%
6 Dany 5.0%
5 Wei Gao 4.2%
2 Dany Shaanan 1.7%
1 Seth Miller 0.8%
1 Isaac Z. Schlueter 0.8%
123 Tim Oxley 68.3%
11 Nicholas Hoffman 6.1%
8 Tim 4.4%
7 Arjun Mehta 3.9%
6 Dany 3.3%
5 Tim Kevin Oxley 2.8%
5 Wei Gao 2.8%
4 Matias Singers 2.2%
3 Michael Kriese 1.7%
2 sreekanth370 1.1%
2 Dany Shaanan 1.1%
1 Tim Malone 0.6%
1 Seth Miller 0.6%
1 andyfusniak 0.6%
1 Isaac Z. Schlueter 0.6%
```

@@ -472,0 +477,0 @@

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