envalid icon indicating copy to clipboard operation
envalid copied to clipboard

Environment variable validation for Node.js

Results 19 envalid issues
Sort by recently updated
recently updated
newest added

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...

dependencies

I've been having an issue where the validator spec functions (`str()`etc.) don't return the correct type when passed a generic. An example: ```ts import { cleanEnv, str } from 'envalid';...

Hello 👋 Thank you again for this awesome package. I had some fun playing around with a _logo_ for `envalid`, so I thought I'd listen in on what you/people think...

Hi, bringing up the similar question to #32 The problem I'm trying to solve is to use different URI for mongo in tests because I'm dropping the entire collection after...

`default` and `defaultDev` should pass the validator like a normal value, then there's no reason to put something else than string. Here's an example: ```ts const toArray = makeValidator((input: string):...

Is there a way to conditionally mark ENV vars as required based on the values of other ENV vars? In my case, I have the following 4 vars: - `USE_TLS`...

enhancement

```typescript const hex = envalid.makeValidator(value => Buffer.from(value, 'hex')) envalid.cleanEnv({ VALUE: 'decafbad', }, { VALUE: hex({ default: 'ff' }), // TypeScript expects a Buffer or undefined }) ``` The parser is...

I'm trying to read a variable from the env object dynamically using a string variable as the property name, but I can't. env.ts ``` import { bool, cleanEnv, port, str...

I need someone to please explain why I need "message" and "stack" here: ```typescript import { cleanEnv, makeValidator, str, testOnly } from 'envalid'; import logger from '../utils/logger-winston'; const env =...