/alias

Gives actualized value from alias or returns given alias

Primary LanguageJavaScriptMIT LicenseMIT

alias

Gives actualized value from alias or returns given alias

Installation

$ npm install @kmccullough/alias

Usage

alias('prod', { production: 'prod' })   // Returns 'production'
alias('prod', { production: ['prod'] }) // Returns 'production'
alias({ production: 'prod' })('prod')   // Returns 'production'

License

MIT