Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 508 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 508 Bytes

store-ts

storeTs

Install

npm install @emit-js/emit @emit-js/store

Setup

import { Emit } from "@emit-js/emit"
import { store } from "@emit-js/store"

const emit = new Emit()
store(emit)

Usage

emit.set(["hello", "world"], true)
emit.get() // { hello: { world: true } }
emit.get("hello") // { world: true }
emit.get(["hello", "world"]) // true
emit.merge("hello", { universe: true })
emit.get() // { hello: { universe: true, world: true } }