Natural Pleistocene Monsters
Miss any of our Open RFC calls?Watch the recordings here! »

@npmcorp/joi-env

1.0.3 • 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')
})

Keywords

none

Install

npm i @npmcorp/joi-env

DownloadsWeekly Downloads

37

Version

1.0.3

License

MIT

Unpacked Size

4.05 kB

Total Files

5

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar