1.1.10 • Published 5 years ago

front-db v1.1.10

Weekly downloads
1
License
ISC
Repository
github
Last release
5 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

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago