1.1.2 • Published 6 years ago

package-exists v1.1.2

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

npm install package-exists --save

Need to check if a node package is installed?

This is the solution for you! package-exists is a simple way to check if a node module is installed. Here is an example of how to use it:

var exists = require("package-exists");
if(exists.npmexists("package-exists")) {
    console.log(true);
}else{
    console.log(false);
}

That's it! Here is the detailed use of npmexists():

//returns true if package exists, false if it does not.
npmexists(package) //package is the name of the package to search for. No need to include ./node_modules/ it searches there automatically.
1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.3

10 years ago

1.0.0

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago