yeoman / configstore

Easily load and persist config without having to think about where and how
BSD 2-Clause "Simplified" License
868 stars 56 forks source link

Custom root folder #43

Closed tomergg closed 8 years ago

tomergg commented 8 years ago

I'm thinking of adding an option to specify the root folder in the ctor arguments. Right now it's hardcoded to 'configstore'.

What do you think?

sindresorhus commented 8 years ago

Why?

tomergg commented 8 years ago

I'm working on a large project structured with sub-modules. Ideally, the config structure would look like this: project-name/module1.json project-name/module2.json project-name/module3.json

sindresorhus commented 8 years ago

The idea of configstore is that you shouldn't care about where the config is stored. It just handled that for you. Sounds like conf would be a better fit for you (see the configName and cwd options).

tomergg commented 8 years ago

Thanks @sindresorhus I'll look into 'conf'