You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm support this for most of their commands which makes it way easier to depend on the stdout output without custom parsing etc. I've found places in the code where args are forwarded to npm but the result is often ignored and not returned to the caller - apart from those places there are also a lot of custom (or with custom implementations) commands that would benefit from this.
This should include returning thrown errors as jsons as well.
This discussion was converted from issue #2945 on February 21, 2021 02:25.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Expected behavior:
npm
support this for most of their commands which makes it way easier to depend on the stdout output without custom parsing etc. I've found places in the code where args are forwarded tonpm
but the result is often ignored and not returned to the caller - apart from those places there are also a lot of custom (or with custom implementations) commands that would benefit from this.This should include returning thrown errors as jsons as well.
Actual behavior:
--json
has no effectBeta Was this translation helpful? Give feedback.
All reactions