Managing NPM Dependency as A Professional
Too Long; Didn't Read
Depcheck is a useful library to check what dependencies are unused or missing from package.json but used in your code base. It’s highly recommended to use it locally (for instance, on pre-commit hooks) or in remote CI to avoid the following issues: Redundant dependencies increase build/bundle size, which leads to these consequences: Docker images become bigger, AWS Lambda handler also has longer cold starts, and an event can surpass lambda size limits. Check licenses of all NPM packages that you use in a project. Check license-checker is the best way to do this!