We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse comma-separated values into arrays.
Currently it's only possible to do with stringified JSON array
LOG_LEVELS=["error","warning"]
@Env<string[]>('LOG_LEVELS', {parseJson: true) readonly logLevels: string[]
This should work too:
LOG_LEVELS=error,warning
@Env<string[]>('LOG_LEVELS', {parseArray: true) readonly logLevels: string[]
We should maybe also add custom delimiters:
@Env<string[]>('LOG_LEVELS', {delimiter: ';'}) readonly logLevels: string[]
The text was updated successfully, but these errors were encountered:
implemented in #6
Sorry, something went wrong.
otavlna
No branches or pull requests
Parse comma-separated values into arrays.
Currently it's only possible to do with stringified JSON array
This should work too:
We should maybe also add custom delimiters:
The text was updated successfully, but these errors were encountered: