</>PackageGraphPackageGraph

cliui

npmv9.0.1

easily create complex multi-column command-line-interfaces

Adopt with care

cliui is usable, with caveats. Last published 542 days ago. 2 releases in the last 2 years.

  • AAdoption: grade A, Excellent.

    212.4M downloads per week and 1 known dependents.

  • CMaintenance: grade C, Fair — worth a look.

    Last published 542 days ago. 2 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Pulls in 4 transitive packages, about 82 KB installed (at least — some of the tree is still being crawled).

  • ASupply chain: grade A, Excellent.

    No install scripts, 2 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    ISC — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding cliui to a project.

3
Direct dependencies

Runtime packages this one declares itself.

4
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

82 KB
Install size

Unpacked size of this package plus its entire runtime tree.

2
Tree depth

Longest resolved dependency chain below this package.

Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.

Licenses in the dependency tree

MIT

Every license you inherit by installing cliui, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >=20
Module format
ESM + CommonJS
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the cliui README.

const ui = require('cliui')()
const {Chalk} = require('chalk');
const chalk = new Chalk();

ui.div('Usage: $0 [command] [options]')

ui.div({
  text: 'Options:',
  padding: [2, 0, 1, 0]
})

ui.div(
  {
    text: "-f, --file",
Example truncated — see the full README.

cliui vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
cliuithis page212.4M1ISC1 year ago
string-width03MIT1 day ago
has-flag166.9M1MIT1 day ago
meow36.7M1MIT1 day ago
supports-hyperlinks35.4M1MIT1 day ago
terminal-link18.8M1MIT1 day ago

Dependencies

Declared by cliui v9.0.1. Runtime dependencies are installed with the package; dev dependencies are not.

Runtime (3)

string-width ^7.2.0strip-ansi ^7.1.0wrap-ansi ^9.0.0

Dev (15)

@types/node ^22.13.10@typescript-eslint/eslint-plugin ^4.0.0@typescript-eslint/parser ^4.0.0c8 ^10.1.3chai ^5.2.0chalk ^5.4.1cross-env ^7.0.2eslint ^7.6.0eslint-plugin-import ^2.22.0eslint-plugin-n ^14.0.0gts ^6.0.2mocha ^11.1.0rimraf ^6.0.1standardx ^7.0.0typescript ^5.8.2

Used by

Popular packages that depend on cliui.

Relationship graph

Dependencies (left) and dependents (right) of cliui.

string-widthyargscliui
cliui dependencies dependents

Frequently installed together

Release history

2 releases in the last two years, typically about 39 days apart.

Recent versions of cliui
VersionPublishedSizeLicense
9.0.1latest1 year ago56 KBISC
9.0.01 year ago55 KBISC
8.0.14 years ago32 KBISC
8.0.04 years ago31 KBISC
7.0.45 years ago30 KBISC
7.0.35 years ago29 KBISC
7.0.25 years ago29 KBISC
7.0.16 years ago29 KBISC
7.0.06 years ago28 KBISC
6.0.06 years ago15 KBISC
5.0.07 years ago14 KBISC
4.1.08 years ago14 KBISC
4.0.08 years agoISC
3.2.010 years agoISC
3.1.210 years agoISC

Overview

cliui is an npm package that easily create complex multi-column command-line-interfaces. It is extremely widely used, with about 212.4M downloads per week and 1 known dependents in the graph. The latest version is 9.0.1, released under the ISC license.

Who should use it

Teams working in the npm ecosystem who need easily create complex multi-column command-line-interfaces and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (212.4M weekly downloads).
  • Clear open-source license (ISC).

Cons

  • Large dependency tree (18 direct dependencies) increases install size and audit surface.
  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use cliui?

cliui is usable, with caveats. Last published 542 days ago. 2 releases in the last 2 years.

How do I install cliui?

Run `npm install cliui` to add cliui to your npm project.

How many dependencies does cliui have?

cliui declares 18 direct dependencies and pulls in 4 packages in total once its runtime tree is resolved totalling about 82 KB on disk.

What license is cliui released under?

cliui is distributed under the ISC license.

How popular is cliui?

cliui has approximately 212,350,843 downloads per week and 1 known dependent packages.

Is cliui still maintained?

The most recent release of cliui (v9.0.1) was published 1 year ago.

Does cliui run install scripts?

No. cliui does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.