needs-pkg-install

1.2.3 • Public • Published

needs-pkg-install

You can know if you shold npm install.

needs-pkg-install compares dependency versions in package-lock.json and actually installed library versions in node_modules directory, and returns true if found differences.

Instalation

$ npm install needs-pkg-install

Usage

const needsPkgInstall = require('needs-pkg-install')

const packageDirectory = '.'
needsPkgInstall(packageDirectory).then(console.log)
// true or false

Readme

Keywords

Package Sidebar

Install

npm i needs-pkg-install

Weekly Downloads

1

Version

1.2.3

License

MIT

Unpacked Size

9 kB

Total Files

9

Last publish

Collaborators

  • fuji_haruka