Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions DEPENDENCIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,6 @@ graph LR;
cacache-->p-map;
cacache-->ssri;
cacache-->unique-filename;
cli-columns-->string-width;
cli-columns-->strip-ansi;
debug-->ms;
encoding-->iconv-lite;
fdir-->picomatch;
Expand Down Expand Up @@ -426,7 +424,6 @@ graph LR;
npm-->cacache;
npm-->chalk;
npm-->ci-info;
npm-->cli-columns;
npm-->cli-table3;
npm-->diff;
npm-->fastest-levenshtein;
Expand Down Expand Up @@ -711,10 +708,6 @@ graph LR;
spdx-expression-parse-->spdx-exceptions;
spdx-expression-parse-->spdx-license-ids;
ssri-->minipass;
string-width-->emoji-regex;
string-width-->is-fullwidth-code-point;
string-width-->strip-ansi;
strip-ansi-->ansi-regex;
tar-->chownr;
tar-->isaacs-fs-minipass["@isaacs/fs-minipass"];
tar-->minipass;
Expand Down
17 changes: 10 additions & 7 deletions lib/commands/team.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const columns = require('cli-columns')
const libteam = require('libnpmteam')
const { output } = require('proc-log')
const { otplease } = require('../utils/auth.js')
Expand Down Expand Up @@ -131,9 +130,11 @@ class Team extends BaseCommand {
output.standard(users.join('\n'))
} else if (!this.npm.silent) {
const plural = users.length === 1 ? '' : 's'
const more = users.length === 0 ? '' : ':\n'
output.standard(`\n@${entity} has ${users.length} user${plural}${more}`)
output.standard(columns(users, { padding: 1 }))
const more = users.length === 0 ? '' : ':'
output.standard(`@${entity} has ${users.length} user${plural}${more}`)
for (const user of users) {
output.standard(user)
}
}
}

Expand All @@ -145,9 +146,11 @@ class Team extends BaseCommand {
output.standard(teams.join('\n'))
} else if (!this.npm.silent) {
const plural = teams.length === 1 ? '' : 's'
const more = teams.length === 0 ? '' : ':\n'
output.standard(`\n@${entity} has ${teams.length} team${plural}${more}`)
output.standard(columns(teams.map(t => `@${t}`), { padding: 1 }))
const more = teams.length === 0 ? '' : ':'
output.standard(`@${entity} has ${teams.length} team${plural}${more}`)
for (const team of teams) {
output.standard(`@${team}`)
}
}
}
}
Expand Down
7 changes: 3 additions & 4 deletions lib/commands/view.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const columns = require('cli-columns')
const { readFile } = require('node:fs/promises')
const jsonParse = require('json-parse-even-better-errors')
const { log, output, META } = require('proc-log')
Expand Down Expand Up @@ -333,7 +332,7 @@ class View extends BaseCommand {
if (deps.length) {
const maxDeps = 24
res.push('\ndependencies:')
res.push(columns(deps.slice(0, maxDeps), { padding: 1 }))
res.push(deps.slice(0, maxDeps).join(', '))
if (deps.length > maxDeps) {
res.push(chalk.dim(`(...and ${deps.length - maxDeps} more.)`))
}
Expand All @@ -349,8 +348,8 @@ class View extends BaseCommand {
}

res.push('\ndist-tags:')
const maxTags = 12
res.push(columns(distTags.slice(0, maxTags), { padding: 1, sort: false }))
const maxTags = 5
res.push(distTags.slice(0, maxTags).join('\n'))
if (distTags.length > maxTags) {
res.push(chalk.dim(`(...and ${distTags.length - maxTags} more.)`))
}
Expand Down
6 changes: 0 additions & 6 deletions node_modules/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
!/@tufjs/models
!/abbrev
!/agent-base
!/ansi-regex
!/aproba
!/archy
!/balanced-match
Expand All @@ -48,13 +47,11 @@
!/chownr
!/ci-info
!/cidr-regex
!/cli-columns
!/cmd-shim
!/common-ancestor-path
!/cssesc
!/debug
!/diff
!/emoji-regex
!/encoding
!/env-paths
!/err-code
Expand All @@ -74,7 +71,6 @@
!/init-package-json
!/ip-address
!/is-cidr
!/is-fullwidth-code-point
!/isexe
!/json-parse-even-better-errors
!/json-stringify-nice
Expand Down Expand Up @@ -144,8 +140,6 @@
!/spdx-expression-parse
!/spdx-license-ids
!/ssri
!/string-width
!/strip-ansi
!/supports-color
!/tar
!/text-table
Expand Down
10 changes: 0 additions & 10 deletions node_modules/ansi-regex/index.js

This file was deleted.

9 changes: 0 additions & 9 deletions node_modules/ansi-regex/license

This file was deleted.

55 changes: 0 additions & 55 deletions node_modules/ansi-regex/package.json

This file was deleted.

16 changes: 0 additions & 16 deletions node_modules/cli-columns/color.js

This file was deleted.

82 changes: 0 additions & 82 deletions node_modules/cli-columns/index.js

This file was deleted.

20 changes: 0 additions & 20 deletions node_modules/cli-columns/license

This file was deleted.

54 changes: 0 additions & 54 deletions node_modules/cli-columns/package.json

This file was deleted.

Loading
Loading