Often in a JS project we import a 3rd party library in order to provide a solution to a problem we have encountered, however there are cases where a library does not provide the full specific functionality that we have to achieve when working on a project.
In production scenarios, we will include libraries for testing and database tools such as puppeteer, and mongoose.
This is the most simplest solution out there to achieve and we will take mongoose for an example case study.