Skip to content

Don't force pkg get to be JSON#9269

Merged
wraithgar merged 2 commits intolatestfrom
gar/pkg-get-json
Apr 22, 2026
Merged

Don't force pkg get to be JSON#9269
wraithgar merged 2 commits intolatestfrom
gar/pkg-get-json

Conversation

@wraithgar
Copy link
Copy Markdown
Member

@wraithgar wraithgar commented Apr 22, 2026

There are two commits here, the first updates tests so that the changes in the second commit are easier to test.

The second commit changes how npm pkg get returns. It is no longer json by default. The non-json output is also similar to how npm view displays.

Fixes npm/statusboard#1080

@wraithgar wraithgar requested a review from a team as a code owner April 22, 2026 17:05
@wraithgar wraithgar force-pushed the gar/pkg-get-json branch 2 times, most recently from 65cfad2 to 1a33a54 Compare April 22, 2026 17:18
Comment thread lib/commands/pkg.js Outdated
BREAKING CHANGE: The `npm pkg` output is no longer forced to json.  This means you can get single values without having to worry about wrapping of the values.  It also outputs non-json content more similarly to `npm view`.

Fixes npm/statusboard#1080
@wraithgar wraithgar merged commit 01d9acd into latest Apr 22, 2026
33 checks passed
@wraithgar wraithgar deleted the gar/pkg-get-json branch April 22, 2026 19:15
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.

don't force pkg get json output

2 participants