1.1.8 • Published 1 year ago
yuienv v1.1.8
Yenv
This module is aiming to be a more powerful version of standard dotenv
This modules takes some things from nodejs ts-dotenv module
You can see examples in
./examples
folder
Node specific bug
- if you know why it happens tell me or make a pr
- values will be optional by default instead of required. To workaround this you need to set it explicitly like this:
const env = await load({
token: {
type: String,
optional: false, // <---
},
});