nm-exists
Check if the node module has exists
Install
$ npm install --save nm-exists
Usage
const nmExists = ; // async; // imagine `express` has been installed in `node_modules/express` directorie; // syncnmExists;//=> 'true' nmExists;//=> 'true'
API
nmExists(moduleID)
Returns a promise for a boolean of whether the module exists
nmExists.sync(moduleID)
Returns a boolean of whether the module exists
moduleID
Type: string
License
MIT © Guntur Poetra