📄️ Packages
When writing code it is beneficial to split things up by functionality. It makes our code more structured and therefore clearer.
📄️ NPM
In the previous chapter we learned how to make our code more reusable by splitting it up into modules. But it doesn't stop there. Now, we want to be able to share modules with other developers.
📄️ Packages in practice
Let us create a project where we make use of npm.
📄️ Advantages of npm
In the previous chapter, we've installed a package to get an idea how npm works. Here we are about to do some routines to make it clear what the advantages of such a workflow is. You will learn a couple of things along the way, so buckle up!
📄️ Npx
Don't worry, we won't introduce another entirely new thing here. npx is a command line tool that comes installed when installing Node.js. It allows us to run node scripts without installing them first (technically they are 'cached' locally, but not installed...)