NPM packages are JavaScript packages designed to accomplish a specific task. For example, there are NPM packages that provide the drivers necessary to connect Node.js to a MySQL database. In effect, packages provide boilerplate code developed by other JavaScript developers that you can incorporate into your projects. That way you can avoid having to program routine tasks and can instead focus on the core logic behind your application.