npm-check or depcheck
To run without installing use npx: npx depcheck npm install depcheck -g or yarn global add depcheck