module-requirer
v1.0.0
Published
Load modules easily without error
Downloads
1
Readme
Module requirer
Load modules easily without error
Install
Install with npm:
$ npm install --save module-requirer
const anyLength = require('module-requirer');
let express = moduleRequirer('express');
console.log( 'typeof express', typeof express ); // function
let noModule = moduleRequirer('noModule');
console.log( 'typeof noModule', noModule ); // false!
Running tests
$ node test.js
License
Released under the MIT License.