Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Mar 13, 2024 via pnpm

columnify 1.5.4

Render data in text columns. Supports in-column text-wrap.
Package summary
Share
0
issues
1
license
6
MIT
Package created
14 Dec 2013
Version published
5 Jan 2016
Maintainers
1
Total deps
6
Direct deps
2
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
6 Packages, Including:
ansi-regex@2.1.1
clone@1.0.4
columnify@1.5.4
defaults@1.0.4
strip-ansi@3.0.1
wcwidth@1.0.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of columnify 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
strip-ansi3.0.11.69 kBMIT
prod
wcwidth1.0.15.68 kBMIT
prod

Visualizations

Frequently Asked Questions

What does columnify do?

Columnify is an open-source npm package that transforms data into text columns suitable for console output. It auto-scales columns to the largest cell content, filling the remaining space to ensure left-aligned content. Original use-case was to provide meaningful wrapping in npm search results.

How do you use columnify?

To use Columnify, first install it using npm with the command npm install columnify. After installing, you can require it in your JavaScript file and use it to format arrays of objects, plain objects, and even customize column names, among other things.

For instance, you can do something like this:

var columnify = require('columnify')

var data = {
  "commander@0.6.1": 1,
  "minimatch@0.2.14": 3,
  "mkdirp@0.3.5": 2,
  "sigmund@1.0.0": 3
}

console.log(columnify(data))

This will render your data in a columnized fashion in the console.

To customize column names, you can do:

var data = {
  "commander@0.6.1": 1,
  "minimatch@0.2.14": 3,
  "mkdirp@0.3.5": 2,
  "sigmund@1.0.0": 3
}

console.log(columnify(data, {columns: ['MODULE', 'COUNT']}))

There are various other options and configurations you can apply when using Columnify. You can set maximum and minimum widths, truncate long text, control alignment, etc.

Where are the columnify docs?

The Columnify documentation can be found on the GitHub repository of the package, which is https://github.com/timoxley/columnify. The readme file of the repository contains comprehensive usage examples and API documentation for Columnify.