Skip to content

satazor/module-exists

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

module exists

Simply easy: Checks if a node module or file exists or not

Installation

npm install module-exists --save

Basic Usage

var module_exists = require('module-exists');
if (module_exists('nodeunit')) {
   ...
}
if (module_exists('./lib/helper.js')) {
   var helper = require('./lib/helper.js');
}

Run tests

npm install -g nodeunit
npm test

Inspired by Francois-Guillaume Ribreau Contributors: Tushar Mathur (typescript)

About

🐝 [STABLE] Simply checks if a node module or file exists or not

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%