Javascript Package Managers 101

Ever wondered what a package manager is made of? Why are lockfiles considered bad practice for libraries but good for apps? Read on.