List all of your npm scripts from
package.json and run one of your choosing in just one short command :)
Just add this to your global
npm packages like so:
npm install --global interactive-scripts or
yarn global add interactive-scripts.
After installing globally with
yarn, simply run
scripts in your terminal.
See the example gif where I demonstrate its use in an actual project:
yarn run already prints out the project's commands and opens a prompt for you to type the name of the command to run.
npm run also lists out the project's commands, but does not open a prompt.
So, the main differences between using your existing package manager's
scripts is that