Created
July 23, 2014 04:28
-
-
Save elegantcoder/4d1aee23511803202e90 to your computer and use it in GitHub Desktop.
inject options
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# case 1 | |
module.exports = function (options) { | |
options.blah; | |
} | |
# case2 | |
module.exports = function () { | |
var options = require('../config.js'); | |
options.blah | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment