How to Use Optional Dependencies with NPM
Learn how to use NPM's --save-optional flag to prevent certain dependencies from installed by those that won't need them. #javascript #programming #100DaysOfCode
If your JavaScript project relies on third-party NPM modules, you probably know that you can designate whether a module is a runtime dependency (by default or explicitly with the --save/-P flags) or as a development dependency (with the --save-dev/-D flags). There are, however, other types of dependencies. In this article Iāll talk about optional dependencies, which are for external librariesā¦
View On WordPress


















