Blame view
node_modules/optional/optional.js
298 Bytes
f7563de62
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
module.exports = function(module, options){ try{ if(module[0] in {".":1}){ module = process.cwd() + module.substr(1); } return require(module); }catch(err){ if (err.code !== "MODULE_NOT_FOUND" && options && options.rethrow) { throw err; } } return null; }; |