1.1.10 • Published 4 years ago

front-db v1.1.10

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

Front db

f-db is a functional based Observable implementation, with a focus on managing state of complex data types (object / arrays). This is especially usefull to responde declaratively to internally (complex UI) or externally (server-side-events / WebSockets) changing application-data.

Please not that front-db is currently under development and not yet suited for production

Example

Data is a simple Observable of any primitive property

import { Data } from "front-db"

let numData = new Data(0)

let subscription = numData.subscribe((numVal) => {
  console.log(numVal)  // 0 | 100 | 200
}, /*optinal: initialize: */ true)

numData.val = 100
numData.val = 200

//current value
console.log(numData.val) // 200

numData.unsubscribe(subscription)

A DataBase is a collection (object) of Data instances.

import { Data, DataBase } from "front-db"

let db = new DataBase()

Conribute

All feedback is appreciated. Create a pull request or write an issue.

1.1.10

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago