Handle npm dependencies in a package.json file