harexs-store
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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]

Readme

Keywords

none

Package Sidebar

Install

npm i harexs-store

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

9.97 kB

Total Files

6

Last publish

Collaborators

  • gu1st