marcuswestin / store.js

Cross-browser storage for all use cases, used across the web.
MIT License
14.01k stars 1.33k forks source link

support delimited keys like nconf #259

Open mafar opened 6 years ago

mafar commented 6 years ago

Please support nested keys like nconf. It is very useful

nconf https://github.com/indexzero/nconf

nconf.set('app:database:port', 5984);
// result
 {
   "app": {
     "database": {
      "port" : 5984
     }
   }
 }
nconf.set('app.database.port', 5984);
// result
{
  "app.database.port": 5984
}

It will be even better if delimited key is configurable at time of init like it could be : or , or whatever