fix(readme): Correct DATABASE_CONFIG example formatting in README and add local settings configuration file
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2025-08-14 - 6.1.2 - fix(readme)
|
||||||
|
Correct DATABASE_CONFIG example formatting in README and add local settings configuration file
|
||||||
|
|
||||||
|
- Fix YAML formatting in DATABASE_CONFIG example to reflect proper YAML syntax
|
||||||
|
- Introduce .claude/settings.local.json with updated permission settings
|
||||||
|
|
||||||
## 2025-08-14 - 6.1.1 - fix(qenv)
|
## 2025-08-14 - 6.1.1 - fix(qenv)
|
||||||
Improve documentation, update dependencies, and refine project configuration
|
Improve documentation, update dependencies, and refine project configuration
|
||||||
|
|
||||||
|
17
readme.md
17
readme.md
@@ -102,17 +102,14 @@ Qenv loads variables in this order (first found wins):
|
|||||||
Store and retrieve complex configuration objects:
|
Store and retrieve complex configuration objects:
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
// In env.yml
|
# In env.yml
|
||||||
const config = {
|
DATABASE_CONFIG:
|
||||||
database: {
|
database:
|
||||||
host: 'localhost',
|
host: localhost
|
||||||
port: 5432,
|
port: 5432
|
||||||
options: {
|
options:
|
||||||
ssl: true,
|
ssl: true
|
||||||
poolSize: 10
|
poolSize: 10
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
// Qenv automatically handles base64 encoding
|
// Qenv automatically handles base64 encoding
|
||||||
const dbConfig = await qenv.getEnvVarOnDemandAsObject('DATABASE_CONFIG');
|
const dbConfig = await qenv.getEnvVarOnDemandAsObject('DATABASE_CONFIG');
|
||||||
|
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/qenv',
|
name: '@push.rocks/qenv',
|
||||||
version: '6.1.1',
|
version: '6.1.2',
|
||||||
description: 'A module for easily handling environment variables in Node.js projects with support for .yml and .json configuration.'
|
description: 'A module for easily handling environment variables in Node.js projects with support for .yml and .json configuration.'
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user