monkeywrench

0.0.1 • Public • Published

node-monkeywrench

Node.js helper library

Configuration

Introduction

Configuration can come from a variety of sources:

  • text files
  • command line options
    • single character options (-d)
    • multiple character options (--dir)
  • environment variables ($HOME)
  • Windows registry

monkeywrench was designed to extract configuration from nodejs applications.

Configuration

Configuration is configured with a JSON file of the following format:

{
    "targets": {
        "propertyname": {
            "description": "This is a one-liner about what this property does",
            "long_description": "This is a much longer description of the property.",
            "default": false,
            "required": false,
            "type": "boolean",
            "where": [
        }
    }
    "sources": [
        {"type": "file", "filename": "~/.myconfig"},
        {"type": "env"}
    ],
}

Readme

Keywords

none

Package Sidebar

Install

npm i monkeywrench

Weekly Downloads

3

Version

0.0.1

License

MIT

Last publish

Collaborators

  • ldgabbay