-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm-query: add page #8445
npm-query: add page #8445
Conversation
|
||
- Find all dependencies with postinstall scripts and uninstall them: | ||
|
||
`npm query ":attr(scripts, [postinstall])" | jq 'map(.name) | join("\n")' -r | xargs -I {} npm uninstall {}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a little too specific?
It seems to be more of a tutorial than a basic usage of a command.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm… I think tldr usually consists of common use-cases, not necessarily basic use-cases.
With that in mind, if this is considered a common use-case, I don't see why not.
I've never used npm query
actually, so I can't speak for if it's common, but on the surface I see nothing wrong with it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the npm
's man page has this use case because the controversial of scripts with postinstall
and the associated security risk.
Co-authored-by: CleanMachine1 <[email protected]>
common
,linux
,osx
,windows
,sunos
,android
, etc.