envalid
envars
envalid | envars | |
---|---|---|
3 | 2 | |
1,322 | 9 | |
- | - | |
4.1 | 4.4 | |
8 days ago | 6 months ago | |
TypeScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
envalid
-
neon-env: a type-safe env parser
Looks very similar to https://github.com/af/envalid. Any reason to use one over the other?
-
How to properly deal with env variables?
Check out https://github.com/af/envalid/ – you declare the env vars you expect to be present via an object literal, and it validates them at runtime, returning a fully typed env object. Helps to centralize the validation and documentation of all of the env vars in your program too.
- Af/envalid: Environment variable validation for Node.js
envars
What are some alternatives?
bulletproof-nodejs - Implementation of a bulletproof node.js API 🛡️
dotenv-run - Seamlessly load environment variables. Supports cli, esbuild, rollup, vite, webpack, angular. ESM and Monorepos.
validator-fluent - Validation library for JavaScript/TypeScript with a strongly typed fluent API
dotenv-vault - sync .env files—from the creator of `dotenv`.
ow - Function argument validation for humans
node-convict - Featureful configuration management library for Node.js
dandi - 🌻A modular DI, MVC, and Model binding/validation framework for NodeJS and TypeScript or ES6
cfg-rs - A Configuration Library for Rust Applications
ReactTemplate - Preconfigured React project with webpack build system and jest unit testing
nestjs-config - Config module for nestjs using dotenv :key:
PHP Dotenv - Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.
config - Type-safe config manager and validator