Skip to content

.env ഫോർമാറ്ററും വാലിഡേറ്ററും

.env ഫയലുകൾ ഫോർമാറ്റ്, സോർട്ട്, വാലിഡേറ്റ് ചെയ്യുക: ഡ്യൂപ്ലിക്കേറ്റ് കീകൾ, തെറ്റായ പേരുകൾ, ക്വോട്ട് ഇല്ലാത്ത സ്പേസുകൾ കണ്ടെത്തുക, JSON അല്ലെങ്കിൽ .env.example ആക്കുക. രഹസ്യങ്ങൾ ഉപകരണത്തിൽ തന്നെ.

അപ്‌ലോഡ് ഇല്ല
# App
APP_NAME=ToolWand
app_env=production
DATABASE_URL=postgres://user:pass@localhost:5432/db
GREETING="hello world"
PORT=8080
API_KEY=sk-test-123
1BAD=oops
MULTI="line one\nline two"

9 variables · 2 errors · 5 warnings

  • ! Line 3: app_env: convention is UPPER_SNAKE_CASE
  • ! Line 3: app_env: spaces around = are not supported by every loader
  • ! Line 6: GREETING: value contains spaces but is not quoted
  • ! Line 7: PORT: duplicate (first on line 4); the last value wins
  • ! Line 8: API_KEY: "export" prefix removed
  • ✕ Line 9: 1BAD: invalid name (letters, digits, _ only; cannot start with a digit)
  • ✕ Line 10: Not a KEY=value line: "not a valid line"

.env ഫോർമാറ്ററും വാലിഡേറ്ററും എങ്ങനെ ഉപയോഗിക്കാം

  1. 1.env ഫോർമാറ്ററും വാലിഡേറ്ററും തുറക്കുക. ഇത് നിങ്ങളുടെ ബ്രൗസറിൽ പ്രവർത്തിക്കുന്നു, സൈൻ-അപ്പ് വേണ്ട.
  2. 2നിങ്ങളുടെ ഇൻപുട്ട് ടൈപ്പ് ചെയ്യുക അല്ലെങ്കിൽ പേസ്റ്റ് ചെയ്യുക.
  3. 3ഫലം കോപ്പി ചെയ്യുക അല്ലെങ്കിൽ ഡൗൺലോഡ് ചെയ്യുക.

ചോദ്യങ്ങൾ

Are my secrets safe?

Yes. Everything runs in your browser — nothing is uploaded or stored.

What does .env.example do?

It keeps every key but empties the values, so you can commit it to show which variables the app needs.

Which value wins for duplicate keys?

Most loaders (like dotenv) keep the last one. Dedupe keeps the last value too.

കൂടുതൽ ടൂളുകൾ