1.1.6 • Published 2 years ago

@chatmate/zodenv v1.1.6

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

welcome to ZodEnv!

endvantage of this

  • you can import key-value pares of config from
    • js/ts object
    • .env file
    • JSON file
    • anything that has been loaded to the OS/container environment variable (procces.env)
  • you can give priorities
  • you can validate
  • the validation is a self-documenting code, so no need for the 'example.env'/'config/example.json' file
  • you can document with /*\/ above every property/sub-object
  • you can get a TypedSafe object at the end
  • the object is created on the first time any other module will import it (so no problem if an early server initialization stage is dependent on it)

future: you can lock(freeze) parts of the final env object you

// "prepare": "npm run build",
1.1.6

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.1.5

2 years ago

1.0.6

2 years ago

1.1.4

2 years ago

1.0.5

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago