How to read an environment variable in Nim

To get an environment variable in Nim, you can use the getEnv procedure:

import os

echo getEnv("SERVER_PORT")

Comments

Leave a comment

What color are brown eyes? (spam prevention)
Submit
Code under MIT License unless otherwise indicated.
© 2020, Downranked, LLC.