0.0.4 • Published 5 years ago

npm-check-install v0.0.4

Weekly downloads
14
License
-
Repository
-
Last release
5 years ago

npm-check-install

Check if the specific npm package has already been installed or not. If it has been installed, do nothing; Otherwise, install it.

Installation

$ npm install --save npm-check-install

Usage

const npmCheckInstall = require('npm-check-install');

npmCheckInstall('antd', { cwd: 'path to check and install' // default process.cwd() })
  .then((hasFound) => {
    // do stuff
  })
  .catch((err) => {
    console.error('ERROR: ', err);
  });

License

MIT © Canner

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

6 years ago