analyse package json and find unused dependencies code example Example: find the unused npm modules npm-check or depcheck