cipm
cipm copied to clipboard
Provide examples and api documentation.
So I got here because I was searching for a reliable way to install javascript dependencies based on a package-lock.json file. Several stack-overflow and git-hub issues linked to this repo.
Would my typical use case be to install libcpm globally or in my project as a dev-dependency? How do I use the API for libcipm? Is it identical to the API for cipm? What is the difference between libcipm and cipm and do I need both?
I would really appreciate an example of how to use this library to install javascript dependencies based on the versions that are "locked" in an already generated package-lock.json file (if that is indeed what this library intends to do).
@oscar-21 the recommended way to use libcipm is through its main consumer: the npm ci command that was added with [email protected]. Using this library directly is a bit of a pain right now because it's hard to get all the config values it needs to operate as expected. The API itself is pretty straightforward though. Just look I'm bin/, since the cipm bin script is an example of how to use this programmatically
https://docs.npmjs.com/cli/ci