Godot .env Parser

An asset by Memeric
The page banner background of a mountain and forest
Godot .env Parser hero image

Quick Information

0 ratings
Godot .env Parser icon image
Memeric
Godot .env Parser

This is a simple and easy to use .env parser for your projects.Don't forget to put .env in your .gitignore. ;)

Supported Engine Version
4.0
Version String
1.1
License Version
Unlicense
Support Level
community
Modified Date
19 days ago
Git URL
Issue URL

Godot .env parser

This is a simple and easy to use .env parser for your projects.

Setup

Simply put the env-parser folder in your addons folder. Next go add the env-parser as a global by doing the following: Project -> Project Settings... -> Globals -> click on the folder icon and select the EnvParser.gd file -> Press Add.

By default the project will look for a .env file in the root of your project. If you wish to change that, you can do so by changing the value of the file_path variable in the EnvParser.gd script.

Use

Simply call EnvParser.parse(env_key), and it will return a String value of whatever your env_key has as value in the .env file. In this project there is a simple example.

Warnings

The project will push an error when the .env file cannot be found. The project will push a warning when it can't find the value you're looking for or the key is simply empty.

Last reminder

Make sure to place .env in your .gitignore file before you upload it. ;)

Happy coding!

This is a simple and easy to use .env parser for your projects.

Don't forget to put .env in your .gitignore. ;)

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Godot .env Parser icon image
Memeric
Godot .env Parser

This is a simple and easy to use .env parser for your projects.Don't forget to put .env in your .gitignore. ;)

Supported Engine Version
4.0
Version String
1.1
License Version
Unlicense
Support Level
community
Modified Date
19 days ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers