benedyktdryl / config Goto Github PK
View Code? Open in Web Editor NEWJavaScript application configuration: moder, customisable & extensible
JavaScript application configuration: moder, customisable & extensible
Using any of modules imports inside config file which is parsed by Babel leads to "module not found error" due to different path of parsed file and path of provider.
Fix it by setting cwd or using custom module resolver.
No need to make handlers class based. They should have I/O model and be exported as object literal with format + parse method.
Postprocessing hooks should be allowed to be injected along with handlers and providers. Implement basic use cases:
%parameter%
with passed parameter (Symfony style)To cover same file formats as node-config
for start we need to implement such providers:
Deferred values should be implemented as provider (ProviderDeferred
).
Example of usage:
const provider = new ProviderDeferred({
'path.to.nested.property': config => composedValue
});
This way, we are not polluting configs with deferred methods and also, we can use deferred values even when using non executable formats like JSON or YAML.
Right now, config for ProviderEnvVariables
looks like this:
{
"ENV_VARIABLE_NAME": "path.to.nested.property"
}
To be consistent with #2 ProviderDeferredValues
, it should be implemented like this:
{
"path.to.nested.property": "ENV_VARIABLE_NAME"
}
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.