Skip to content

throws if defaultValue is not defined #13

@haohuawu

Description

@haohuawu

Given

const foo = pickEnv({
  production: 'foo',
  develop: 'foo_dev'
})

If current env is staging, foo will be null, which is not expected.

Expected

throws if variable is undefined as no env is matched

Suggestion

Maybe an option to control this behavior is just fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions