npm-install-if-needed

Install if needed

Usage no npm install needed!

<script type="module">
  import npmInstallIfNeeded from 'https://cdn.skypack.dev/npm-install-if-needed';
</script>

README

install-if-needed

Build Status npm Version JS Standard

Run npm install only if needed

Install

npm i npm-install-if-needed

Usage


cd __your_package_dir__
npx npm-install-if-needed # Run npm install only if needed

Programmatic API

const installIfNeeded = require('npm-install-if-needed')

installIfNeeded()