1.0.4 • Published 2 years ago

@npmcorp/joi-env v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

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')
})
1.0.4

2 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago