// index.jslet strict =false;
constweoptions=require('weoptions')('id', strict);
let options = {
name:'yobrave',
a: {
b: {
c:1,
},
},
// ...
};
let w =weoptions(options);
// initw.set('a.b.c', 2); //// 2w.set('a.b.e.d', 2); //// 2// if strict == false, create e d, set d=2// if strict == true, create e d throw TypeErrorw.get();
// options// orw.get('a.b.c');
// 2
// other.jsconstweoptions=require('weoptions')('id'); // after initw.get();
// optionsw.set('a.b.c', 1);
// 1w._setStrict(true);
// change strict with id