feat(v1.5.0): Full-Stack Web Engine, F-Strings, Cyber OSINT & Terminal UI Suite

This commit is contained in:
Adam Eehan committed 2026-10-12 12:41:20 +05:30
1 parent 619492bdbf
commit f90ea8cdd1
13 files changed
+766 -26

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
# 🛡️ AiraLang Module: `env`
The `env` module provides seamless `.env` file loading and secure environment variable access.
---
## 📌 Functions
### 1. `env.load(filepath=".env")`
Loads key-value pairs from a `.env` file into the environment. Returns `true` if loaded, `false` if file does not exist.
```airalang
import "env";
env.load(".env");
```
### 2. `env.get(key, default=null)`
Retrieves an environment variable.
```airalang
let key = env.get("GEMINI_API_KEY", "default_key");
```
### 3. `env.set(key, value)`
Sets an environment variable in the current process.
```airalang
env.set("APP_MODE", "development");
```
### 4. `env.all()`
Returns a dictionary of all current environment variables.