Get the latest tech news

Zdotenv – Dotenv Loader for Zig


Zdotenv - A port of Godotenv for Zig. Contribute to BitlyTwiser/zdotenv development by creating an account on GitHub.

Zdotenv is a simple .env parser and a port of godotenv and ruby dotenv, but with a smidge more simplicity. Zig (at the time of this writing) does not have a solid way of directly adjusting the env variables. import below using zig zon, load the .env, and access the variables as needed using std.process.EnvMap :)

Get the Android app

Or read this on Hacker News

Read more on:

Photo of zig

zig

Photo of dotenv loader

dotenv loader

Photo of zdotenv

zdotenv

Related news:

News photo

Packed structs in Zig make bit/flag sets trivial

News photo

Show HN: HypergraphZ – A Hypergraph Implementation in Zig

News photo

Zig's Memcpy, CopyForwards and CopyBackwards