Comparing version 1.1.1 to 1.2.0
{ | ||
"name": "classenv", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Describe your environment variables contract with TypeScript class", | ||
@@ -25,3 +25,18 @@ "main": "dist/index.js", | ||
"typescript": "^3.8.3" | ||
} | ||
}, | ||
"keywords": [ | ||
"dotenv", | ||
"env", | ||
".env", | ||
"environment", | ||
"variables", | ||
"config", | ||
"settings", | ||
"process", | ||
"process.env", | ||
"typescript", | ||
"class", | ||
"decorator", | ||
"defaults" | ||
] | ||
} |
@@ -0,3 +1,6 @@ | ||
# classenv | ||
A perfect typescript environment variables library. | ||
- Strongly-typed declarative class containing your environment data | ||
- Type-casting using TypeScript metadata reflection | ||
@@ -7,2 +10,3 @@ - Auto UPPER_SNAKE_CASE conversion | ||
- Throws runtime error if variable doesn't exist | ||
- Default values support | ||
- Makes decorated properties read-only in runtime | ||
@@ -31,3 +35,6 @@ | ||
@Env() // Auto UPPER_SNAKE_CASE conversion supported | ||
static isSomethingEnabled: number | ||
static isSomethingEnabled: number; | ||
@Env() // Won't throw, because got default value | ||
static withDefault: string = 'yeah its me' | ||
} | ||
@@ -34,0 +41,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5369
55