@npmcorp/joi-env

1.0.4 • Public • Published

joi-env

This joi extension provides the ability to compose an object based off of environment variables, complete with validation and type coercion

Usage

const BaseJoi = require('@hapi/joi')
const JoiEnv = require('joi-env')

const Joi = BaseJoi.extend(JoiEnv)

const schema = Joi.object({
  myKey: Joi.string().env('MY_KEY')
})

Dependencies (0)

    Dev Dependencies (8)

    Package Sidebar

    Install

    npm i @npmcorp/joi-env

    Weekly Downloads

    1,490

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    4.05 kB

    Total Files

    5

    Last publish

    Collaborators

    • shmam
    • dipeshpatel01
    • kartykp
    • jithinpg
    • reggi
    • karenjli
    • tayvongh
    • navin22
    • lukekarrys-gh
    • dhei
    • tiagonbotelho
    • hashtagchris
    • nishantms
    • feelepxyz.github
    • monishcm
    • jumoel
    • trevrosen
    • fritzy
    • npm
    • npmci
    • saquibkhan
    • gar
    • mylesborins