getconfig icon indicating copy to clipboard operation
getconfig copied to clipboard

Config file reader for node.js projects that detects environment based on NODE_ENV.

Results 7 getconfig issues
Sort by recently updated
recently updated
newest added

there is some desire to allow getconfig to retrieve values from somewhere other than a file on disk or environment variables, however this requires a bit of planning to come...

enhancement

JSON's lack of comments has always been a frustration, and the alternative of using javascript isn't really a great one. there's no good reason we can't allow for different file...

enhancement

it is extremely undesirable to run `npm test` and inadvertently use the wrong configuration because of forgetting to set `NODE_ENV=test` we can use some npm provided environment variables to more...

enhancement

right now getconfig is somewhat arbitrarily limiting environment variable usage to uppercase strings, this isn't necessary so let's not keep that limitation.

enhancement

I have these env as json files in my config/ dir: - default - dev - local - production - staging Although I have NODE_ENV set to 'staging', the config...

In my Create React app i want to use getconfig since it works so easy. Sadly when implementing this i got an error `Error: Unable to find a config directory`...

It would be nice to have a `isProd` counterpart to check if your not in the production environment. Becomes handy for covering both `NODE_ENV=development` and `NODE_ENV=test`.