Find and run scripts in your package.json
in an interactive way.
npm i npm-run-interactive -g
Navigate in your project's directory and just run nri
to see a list of all your npm/yarn scripts that you can then execute.
Cycle through the scripts with the up
/down
arrows or tab
/shift+tab
.
Filter the scripts by typing in the prompt, your input will be searched in script names and values.
Skip the prompt and just view your scripts in JSON format by redirecting output to a non-interactive stdout (file, cat
, jq
etc).