envars
envalid
envars | envalid | |
---|---|---|
2 | 3 | |
9 | 1,322 | |
- | - | |
4.4 | 4.1 | |
6 months ago | 9 days ago | |
JavaScript | TypeScript | |
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.
envars
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
What are some alternatives?
dotenv-run - Seamlessly load environment variables. Supports cli, esbuild, rollup, vite, webpack, angular. ESM and Monorepos.
bulletproof-nodejs - Implementation of a bulletproof node.js API 🛡️
dotenv-vault - sync .env files—from the creator of `dotenv`.
validator-fluent - Validation library for JavaScript/TypeScript with a strongly typed fluent API
node-convict - Featureful configuration management library for Node.js
ow - Function argument validation for humans
cfg-rs - A Configuration Library for Rust Applications
dandi - 🌻A modular DI, MVC, and Model binding/validation framework for NodeJS and TypeScript or ES6
nestjs-config - Config module for nestjs using dotenv :key:
ReactTemplate - Preconfigured React project with webpack build system and jest unit testing
PHP Dotenv - Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.
config - Type-safe config manager and validator