harexs-store
v1.0.0
Published
Easily load and persist config
Downloads
1
Readme
harexs-store
Easily load and persist config(study for configstore)
Usage
import harexsStore from "harexs-store";
const harexsStore = store("harexs");
harexsStore.set("js.ts.go", [1, 2, 3]);
console.log(harexsStore.get("js.ts.go")); //=>[1, 2, 3]
console.log(harexsStore.has("js.ts")); //=> true
harexsStore.remove("js.ts.go");
console.log(harexsStore.get("js.ts.go")); //=>undefined
harexsStore.clear();
console.log(harexsStore.get("js")); //=>undefined
harexsStore.set("js.ts", [1, 2, 3]);
console.log(harexsStore.get("js.ts")); //=>[1, 2, 3]