Newborn Programming Monsters

    mojito-config-expansion

    0.0.5 • Public • Published

    Mojito Config Expansion plugin

    Build Status

    Build Status

    Usage

    This package contains a Mojito resource store add-on that allows you to write the following in your configuration files:

    {
        "specs > frame > config > child > config > section > article > config > truncation_length": 180
    }

    Instead of:

    {
        "specs": {
            "frame": {
                "config": {
                    "child": {
                        "config": {
                            "section": {
                                "article": {
                                    "config": {
                                        "truncation_length": 180
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    Note: the above is a real life example that clearly demonstrates how maintaining configuration can become painful in a complex Mojito application.

    To use this resource store add-on, simply require the mojito-config-expansion npm package in your application.

    Keywords

    none

    Install

    npm i mojito-config-expansion

    DownloadsWeekly Downloads

    3

    Version

    0.0.5

    License

    none

    Last publish

    Collaborators

    • jlecomte