1.0.5 • Published 2 months ago

envok v1.0.5

Weekly downloads
566
License
-
Repository
-
Last release
2 months ago

envok

Use Joi to validate/assert your required environment

Usage:

var envok = require('envok');
var Joi = require('joi');

//Will make sure NODE_ENV is present...and any other Joi validation you use..
//Also will return an object with camelized keys for each key in the schema
const config = envok({
  NODE_ENV: Joi.string().required().allow('development', 'staging', 'production'),
})

module.exports = config;
1.0.5

2 months ago

1.0.4

8 months ago

1.0.3

2 years ago

1.0.2

5 years ago

1.0.1

8 years ago

1.0.0

8 years ago