0.0.2 • Published 4 years ago

aasu v0.0.2

Weekly downloads
9
License
MIT
Repository
github
Last release
4 years ago

Aasu

Aasu is flat local storage for the browser.

Concept

Aasu stores nested properties flatly at the root. For example,

await aasu.set("foo", "Aasu is (not) flat");
await aasu.set("bar.baz.qux", "Hello, Aasu!");

is stored as:

foo:
    type: NodeType.Leaf
    data: "Aasu is (not) flat"
bar:
    type: NodeType.Inner
    data: ["baz"]
bar.baz:
    type: NodeType.Inner
    data: ["qux"]
bar.baz.qux:
    type: NodeType.Leaf
    data: "Hello, Aasu!"

This way, there is no need to read and write an item's entire containing subtree just to get or set the item's properties. For structures with large items or many siblings, this may lead to performance improvements (untested) and just feels better.

Documentation →

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago