bahmutov / bahmutov/really-need
Configure default options at time require is replaced
- Dominant language
- JavaScript
- Stars
- 107
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no files or tests. Start by locating the require wrapper and its existing option-handling path, then trace how per-invocation options are applied. Done means a configured wrapper supplies defaults to later require calls while explicit invocation options override them, with coverage for both cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100