Socket
Book a DemoInstallSign in
Socket

mojito-config-expansion

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mojito-config-expansion

Config expansion plugin for Mojito's Resource Store

latest
Source
npmnpm
Version
0.0.5
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 24 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts