rafael-figueiredo-alves
released this
01 Jul 01:31
·
1 commit
to main
since this release
Big new features brought by this release:
- Support to Lazarus / Free Pascal (DotEnv4Delphi is now Lazarus / FreePascal Friendly)
- Added methods to define a default value if the variable can't be found
- a new demo using the lib to build a server using horse (you can do something common on NodeJS servers with DotEnv4Delphi now). Take a look:
- In JavaScript:
app.listen(process.env.PORT || 3000);
- In Delphi with Horse, you can do this:
THorse.Listen(DotEnv.PortOrDefault(3000));
- In JavaScript: