clojusc / env-ini Goto Github PK
View Code? Open in Web Editor NEWClojure(script) functions for accessing config data from the ENV or INI files
License: Other
Clojure(script) functions for accessing config data from the ENV or INI files
License: Other
And then use that for all subsequent calls to the env.
Will need to add a force-reload
option ...
Since env takes precedence over configuration, put it first in all the names:
Will need to add a force-reload
option ...
Right now, the lookup assumes the keys in the config file and the env are the same (modulo section/section prefix). We should also allow for users to simple ask for a value with an environment key and with a section/key.
We'll need to isolate the lang-specific functionality and use cljc files.
Tasks:
src/clj
Related:
These two look like a good place to start:
We might be able to support only .ini
files with the following in a .js
file in this project's codebase (somewhere ... new to this JS in Clojure stuff ...):
require('better-require')('ini');
Memoize, and then have all subsequent lookups done against this data.
Environment variable support in Clojurescript is somewhat more problematic:
It may be that we can use some sort of convention for exposing env-like vars in non-browser/client-facing Clojurescript apps ...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.