Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.
This repository was archived by the owner on Feb 21, 2023. It is now read-only.

Support alternative verbose syntax #1

@wilmoore

Description

@wilmoore

This is a proposal for a potential enhancement to the syntax.

The short syntax is great; however, for those that need it, the verbose syntax would support:

  • Coercion
  • Validation
  • Alternative Key Name

Example:

var toBoolean = require('truthy')
var isBoolean = require('util').isBoolean

module.exports = deo({
  server: {
    cors: {
      default: true,
      coerce: toBoolean,
      check: isBoolean,
      key: 'CORS_ENABLED'
    }
  }
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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