Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

classenv

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

classenv - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

19

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc