dshaw / env Goto Github PK
View Code? Open in Web Editor NEWHerding invisible cats
Herding invisible cats
Hi @dshaw,
We would prefer not to see the npm warning when install env.
Would you consider adding the default ICS or do you have a preference for a different license?
Thanks! 👍
Would be cool to have a CLI for:
Hi @dshaw,
We would really like to extend _env_ to make all configuration loaded from env.json
available as process.env.VAR_NAME
would you accept a PR for this extension.
This would simply be a loop to itterate over the entries in env.json
and add them to the process.env
object using your env.set
method.
(100% backward compatibility will be maintained and 100% test coverage)
Let us know.
Thanks!
I'm assuming the "1" values in the JSON file are just "truthy" values for now. What would you think of enumerating possible values? Perhaps even validation rules, (though that may be pushing it). For instance:
{
'ENVIRONMENT' : {
'values' : [ 'dev', 'prod', 'test' ]
},
'PORT' : {
'validate' : function(value) {
return value < 9999 && val > 1000;
}
}
I don't think this validating impl "feels" right; it probably belongs in the biz logic, but there's something to be said for having it in the env spec for clarity. You get the idea. Thoughts?
Would there ever be a use case for optional env variables? Would that need to be in the env spec?
Hi @dshaw we are needing an environment variable manager for our project dwyl/app#93
would you accept a PR with tests?
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.