how to tell what packages are needed in package.json code example Example: find the unused npm modules npm-check or depcheck