Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transform values from file store #331

Open
nfantone opened this issue Jul 8, 2019 · 1 comment
Open

Transform values from file store #331

nfantone opened this issue Jul 8, 2019 · 1 comment

Comments

@nfantone
Copy link

nfantone commented Jul 8, 2019

.env and .argv stores provide a transform option to apply transformations on each value - but .file seems to be missing that feature, which makes it harder to mix and match the three, since you cannot easily generate the same values from all sources.

Is there any known work around for this?

Thanks!

@mhamann
Copy link
Collaborator

mhamann commented Jul 23, 2019

@nfantone nothing "built-in" comes to mind.

A couple of options:

  • Find a module you could use that would read the file, transform it, and then return a handle to nconf
  • "Manually" parse through the store after read to do your transformations
  • PR support to nconf to handle file transforms <-- (this is my favorite ;-) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants