Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure default options at time require is replaced #16

Open
santanubasu opened this issue Nov 2, 2015 · 1 comment
Open

Configure default options at time require is replaced #16

santanubasu opened this issue Nov 2, 2015 · 1 comment

Comments

@santanubasu
Copy link

Looking for a way to pass default options, applied to all require invocations (unless overridden by per-invocation options). So, I'd like to do things like this:

require = require('really-need')({... some default options...})

and then later on, in any given module:

var mymodule = require("mymodule")

where since I haven't supplied an options object, the defaults specified when I required really-need would be used.

great project btw, very innovative.

@bahmutov
Copy link
Owner

bahmutov commented Nov 2, 2015

Hmm, that's a use case, I have to check the code what happens now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants