@emit-js/store
TypeScript icon, indicating that this package has built-in type declarations

8.1.0 • Public • Published

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 } }

Dependencies (0)

    Dev Dependencies (13)

    Package Sidebar

    Install

    npm i @emit-js/store

    Weekly Downloads

    2

    Version

    8.1.0

    License

    MIT

    Unpacked Size

    9.71 kB

    Total Files

    9

    Last publish

    Collaborators

    • winton