conf icon indicating copy to clipboard operation
conf copied to clipboard

Custom storage provider

Open eidermaen opened this issue 1 year ago • 0 comments

Is it possible to define some custom storage provider, so that the data is not stored in some local file? In my setup there is some external storage where data can be stored but this one is just a plain JS object storage with no validation etc. That's why I would like to use this library here to have the following:

  • Basically all features of this library including schema validation, migrations, etc.
  • Additionally: Custom provider so that for example when calling conf.set the data is not written to a local file but that I can customize the behavior and then call at this point this external storage api. Same for when calling conf.get I want to retrieve the data from the external storage.

Is this somehow possible with this library? If not, might there be an alternative library or is it imaginable that this library is extended by the possibility of custom providers?

eidermaen avatar Apr 13 '23 12:04 eidermaen