Implement a Fluent interface for ConfigParser.
As a developer, I want to do
new ConfigParser('...')
.addEngine(...)
.addPlugin(...)
.write();
Should be possible as a non-breaking change. If in doubt, we could export something like the following as a first step:
class FluentConfigParser extends ConfigParser {
addPlugin (...args) {
return (super.addPlugin(...args), this);
}
addEngine (...args) {
return (super.addEngine(...args), this);
}
}
Implement a Fluent interface for
ConfigParser.As a developer, I want to do
Should be possible as a non-breaking change. If in doubt, we could export something like the following as a first step: