Module

Data.String.Env

Package
purescript-env-names
Repository
joellefkowitz/env-names

#Alias Source

data Alias

The Alias type is used to represent strings that also have a shortened form.

Constructors

Instances

#singleton Source

singleton :: String -> Alias

Create an Alias who's short and long forms are the same.

#names Source

names :: Array Alias

A bank of common aliases. Singletons are used for compatibility.

"dev", "development"
"staging"
"alpha"
"beta"
"prod", "production"
"local", "locals"
"remote"
"test", "tests"
"unit"
"integration"
"e2e", "endToEnd"

#replaceLong Source

replaceLong :: String -> Alias -> String

Replace a string with the long form of an alias.

#replaceShort Source

replaceShort :: String -> Alias -> String

Replace a string with the short form of an alias.

#shortEnv Source

shortEnv :: String -> String

Replace a string with the short form of any matching alias from the list of common aliases.

#longEnv Source

longEnv :: String -> String

Replace a string with the long form of any matching alias from the list of common aliases.