ci

Run npm ci using the appropriate Node package manager (npm, yarn, pnpm)

Usage no npm install needed!

<script type="module">
  import ci from 'https://cdn.skypack.dev/ci';
</script>

README

ci Latest version Monthly downloads Install size

Package-manager agonstic lock-file installation. Supports npm, yarn and pnpm.

Try it out in your npm project. It has zero dependencies and is blazing fast!

$ npx ci

If you like this project, please star it & follow me to see what other cool projects I'm working on! ❤️

🙋‍♂️ Why?

npm has a command npm ci to install dependencies from the lock file with a clean slate. However, this command is different on both yarn and pnpm and can be confusing to remember across different projects.

You can now run this in any project without worrying about the package manager. It's great for contributing to open-source projects or using it in CI workflows.

Also safe for when you accidentally type npx ci instead of npm ci 😉