cipm icon indicating copy to clipboard operation
cipm copied to clipboard

Provide examples and api documentation.

Open Oscar-21 opened this issue 7 years ago • 2 comments
trafficstars

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 avatar Mar 20 '18 00:03 Oscar-21

@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

zkat avatar Mar 21 '18 09:03 zkat

https://docs.npmjs.com/cli/ci

styfle avatar Mar 21 '18 11:03 styfle