Skip to content

nplc-packages/dotenv-npl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

NPL dotenv

A nplc package aims to bring the advantages from the dotenv to npl runtime!

Usage

Simply add a .env file and put your kv config into it like this:

.env file

# comment
KEY=VALUE

in npl

print(ENV[KEY]) -- VALUE

Important, do NOT put comment to the tail of a kv config, like this:

KEY=VALUE # comment

In this way, you will get

print(ENV[KEY]) -- VALUE # comment

About

a npl dotenv implement

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published