Skip to content

kownacki/module-available

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

module-available

Test whether a module is available as a dependency

Installation

$ npm install module-available

API

var moduleAvailable = require("module-available");
moduleAvailable(moduleName) -> boolean
  • moduleName - Same string with a module's name that can be passed to require. This should be a module from node_modules.

Returns true if and only if the requested module is available to be required. Otherwise returns false.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published