1.0.8 • Published 1 year ago

@js-minified/data v1.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Implements a very basic store with data accessors with a minimum bundle size of less than 5kb. It mainly implements unicity for a given ID.

Work in progress:

  • Support for non-unicity

Options:

  • Namespace

Components to use:

setData({
  id,
  data,
  options = { leading: false, namespace: "" },
})

getData({ id })

deleteData({ id })

You need to provide a id parameter for store management.

All the library includes type declarations, but functions are self-explanatory for plain JS.

1.0.8

1 year ago

1.0.7

1 year ago