Skip to content

ootiq/nenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nenv

Simple .env file parser for Nim

Install

nimble install https://github.com/TheBoringDude/nenv.git

Usage

import nenv
import os

loadEnv()

echo getEnv("HELLO")

# get values in their respective types
# .. these functions will throw ValueError if 
# ..  their values can't be parsed
echo typeof getEnvInt("NUM")
echo typeof getEnvFloat("DECIMAL")
echo typeof getEnvBool("BOOL")

© TheBoringDude

About

Simple `.env` file parser for Nim

Resources

License

Stars

Watchers

Forks

Packages

No packages published