Skip to content

Conversation

@wraithgar
Copy link
Member

@wraithgar wraithgar commented Apr 22, 2024

This removes almost all table output from npm. Table output is
discouraged for clis because it is not very accessible.

npm outdated still has it, but that will likely take a little more
design/time to iron out.

npm search still has it, and the summary of a tarball still has it. Those are next to be removed.

There is a deps commit here moving cli-table3 to devDependencies
since we now only use it for ./scripts/publish.js

  • deps: move cli-table3 to devDependencies
  • fix: Remove table output from many commands

We only need it for `scripts/publish.js`
@wraithgar wraithgar requested a review from a team as a code owner April 22, 2024 14:07
@wraithgar
Copy link
Member Author

wraithgar commented Apr 22, 2024

The docs pages for these commands need to be updated still.

Done

This removes table output from `hook`, `profile`, `doctor`, `org`, and `token`.
It also removes table output from the `--long` or `--dry-run` output of
install commands.

Table output is discouraged in a cli for accessibility reasons.

The tests for `token` were also rewritten because they did not actually
test the behavior of npm with the registry.

`this.config` was also removed from `token`.  npm-registry-fetch pulls
all this from flatOptions already.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants