GithubHelp home page GithubHelp logo

node-get-config's People

Contributors

pilwon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

node-get-config's Issues

Provide a way to merge in local (unsourced) configs

I'm migrating from node-config and one thing I liked about that was that it automatically merged local config files, intended for local, unsourced overrides.

It would be great in node-get-config would merge in things from an optional local folder as a last step in merging.

Thoughts?

Symlinks cannot be used as config files or directories

The code that checks properties of the filesystem uses lstat. The difference between lstat and stat from the docs:

lstat() is identical to stat(), except that if path is a symbolic link, then the link itself is stat-ed, not the file that it refers to.

This prevents the usage of symbolic links to config files and directories. Is this intentional? Could stat be used instead?

Client Side Config?

Your examples have client and server config files. Just wondering if you had a good solution for actually using this as client side configuration?

Comparison with node-config

I've been using https://github.com/lorenwest/node-config for a bit, but just noticed your package.

Just wondering if you've used it and if you can offer any comparisons to how node-get-config works, or why you'd choose one over the other.

On the surface, I like that node-get-config seems a bit simpler/less-magical than node-config.
Also, node-config values are immutable, which I see the benefit of but has also caused a bit of trouble.

Thanks!

deasync dependency is out of date

The deasync dependency is set to version 0.0.10, but I cannot compile that version any more on my up-to-date windows machine. The newest version however (0.1.7) compiles fine.
Is it possible to update the dependency to a newer version?

Use also folders as keys

It would be a nice addition if one could also use configuration files nested in folders, which will then be parsed recursively (like is the case with Kohana's CFS), e.g.:

config/
   +-- dev/
      +-- locales/
         +-- en.yml
   +-- locales/
      +-- en.yml
      +-- es.yml

Will result in:

{
   "locales": {
      "en": {
         "foo": "bar"
      },
      "es": {
         "foo": "barra"
      }
   }
}

Merge in local (unsourced changes)

Other node config libraries have the concept of a "local" config, that would be merged in last, meant for local, unsourced overrides.

So for node-get-config, this would mean a config/local folder that got merged in last.

Any thoughts about this? Do you think this is something that should/could be built-in, or something that should be done manually?

https://github.com/HenrikJoreteg/getconfig#where-to-put-your-config-and-what-to-call-it
https://github.com/lorenwest/node-config/wiki/Configuration-Files#file-load-order

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.