1.1.2 • Published 4 years ago

package-exists v1.1.2

Weekly downloads
4
License
ISC
Repository
github
Last release
4 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

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.3

8 years ago

1.0.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago