Skip to content

Fluent interface for ConfigParser #38

@raphinesse

Description

@raphinesse

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);
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions