How to sort your package.json dependencies

Clarice Bouwer - Apr 18 '22 - - Dev Community
npm r -S example; npm r -D example
Enter fullscreen mode Exit fullscreen mode

is short hand for npm remove --save anything and npm remove --save-dev whatever.

Thanks to this question on Stack Overflow.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .